Skip to content

Commit

Permalink
Revert "remove unnecessary options object manipulation"
Browse files Browse the repository at this point in the history
This reverts commit eb6319f.

Turns out those options ARE relevant, for Minimatch, though not for
glob.  Oh well.

Fix #239
  • Loading branch information
denis-sokolov authored and isaacs committed Dec 28, 2015
1 parent 19f5928 commit 8c97a0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common.js
Expand Up @@ -104,6 +104,11 @@ function setopts (self, pattern, options) {

self.nomount = !!options.nomount

// disable comments and negation in Minimatch.
// Note that they are not supported in Glob itself anyway.
options.nonegate = true
options.nocomment = true

self.minimatch = new Minimatch(pattern, options)
self.options = self.minimatch.options
}
Expand Down

0 comments on commit 8c97a0a

Please sign in to comment.