Skip to content

Commit

Permalink
Try to account for windows-style globs
Browse files Browse the repository at this point in the history
(will squash if/when Appveyor passes)
  • Loading branch information
IanVS committed Aug 5, 2016
1 parent b205c71 commit 409974a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/glob-util.js
Expand Up @@ -160,7 +160,7 @@ function listFilesToProcess(globPatterns, options) {
} else {

// regex to find .hidden or /.hidden patterns, but not ./relative or ../relative
const globIncludesDotfiles = /(?:(?:^\.)|(?:\/\.))[^\/\.].*/.test(pattern);
const globIncludesDotfiles = /(?:(?:^\.)|(?:[\/\\]\.))[^\/\\\.].*/.test(pattern);

options.dotfiles = options.dotfiles || globIncludesDotfiles;
const ignoredPaths = new IgnoredPaths(options);
Expand Down

0 comments on commit 409974a

Please sign in to comment.