diff --git a/lib/glob.js b/lib/glob.js index e6805aa..fa9b29c 100644 --- a/lib/glob.js +++ b/lib/glob.js @@ -84,6 +84,9 @@ function matchPattern(pattern, string) { } function glob(path, fsm, callback, noWildcards) { + // Standardize path for wildcard lookup + path = path.replace(/\\/gi, '/') + var w; for (w = 0; !noWildcards && w < path.length && path.charAt(w) !== '*' && path.charAt(w) !== '?'; ++w) {