Skip to content

Commit

Permalink
fix incomplete sanitization (#6328)
Browse files Browse the repository at this point in the history
  • Loading branch information
s0 authored and arcanis committed Sep 2, 2018
1 parent 2f89339 commit 047b10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function matchesFilter(filter: IgnoreFilter, basename: string, loc: strin
filterByBasename = false;
}
// the micromatch regex expects unix path separators
loc = loc.replace('\\', '/');
loc = loc.replace(/\\/g, '/');

return (
filter.regex.test(loc) ||
Expand Down

0 comments on commit 047b10a

Please sign in to comment.