Skip to content

Commit b955ccf

Browse files
sampaiolettiRomakita
authored andcommitted
fix(common): Fix windows paths in scanner
Closes: #709
1 parent 15d142b commit b955ccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Path from "path";
22

33
export function cleanGlobPatterns(files: string | string[], excludes: string[]): string[] {
4-
excludes = excludes.map((s: string) => "!" + s.replace(/!/gi, ""));
4+
excludes = excludes.map((s: string) => "!" + s.replace(/!/gi, "").replace(/\\/g, "/"));
55

66
return []
77
.concat(files as any)
@@ -10,7 +10,7 @@ export function cleanGlobPatterns(files: string | string[], excludes: string[]):
1010
file = file.replace(/\.ts$/i, ".js");
1111
}
1212

13-
return Path.resolve(file);
13+
return Path.resolve(file).replace(/\\/g, "/");
1414
})
1515
.concat(excludes as any);
1616
}

0 commit comments

Comments
 (0)