We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89fd65b commit 0fe456eCopy full SHA for 0fe456e
src/utils.ts
@@ -10,5 +10,8 @@ export function checkIsExclude(
10
11
const excludes = Array.isArray(exclude) ? exclude : [exclude];
12
13
- return excludes.some((reg) => reg.test(path));
+ // normalize to posix path
14
+ const normalizedPath = path.replace(/\\/g, '/');
15
+
16
+ return excludes.some((reg) => reg.test(normalizedPath));
17
}
0 commit comments