Fix: test coverage node_modules exclusion in Windows (#12691)

This commit is contained in:
Dariush Alipour
2024-07-22 22:25:42 +02:00
committed by GitHub
parent 63fab9a82b
commit 732ed2b7df
2 changed files with 24 additions and 1 deletions

View File

@@ -598,7 +598,7 @@ const Scanner = struct {
};
// always ignore node_modules.
if (strings.contains(slice, "/" ++ "node_modules" ++ "/")) {
if (strings.contains(slice, "/node_modules/") or strings.contains(slice, "\\node_modules\\")) {
return false;
}