micromatch / glob-fs

file globbing for node.js. speedy and powerful alternative to node-glob. This library is experimental and does not work on windows!
http://jonschlinkert.github.io/glob-fs
MIT License
55 stars 17 forks source link

this.pattern.re vs: this.pattern.regex #7

Open arisahl opened 8 years ago

arisahl commented 8 years ago

When trying to use glob-fs 0.1.6 just right out of the box I had to do the following modification in index.js, to get it running:

    // if middleware are registered, use the glob, otherwise regex
    var glob = this.fns.length
      ? this.pattern.glob
      //: this.pattern.re; //<-- error
      : this.pattern.regex; //<-- fix
UndefinedOnGitHub commented 8 years ago

I had the same issue and this fix worked.

jonschlinkert commented 8 years ago

sorry for the late reply and thanks for the fix. marking a bug, I'll push up a fix as soon as I get a chance unless you'd like to do a pr. thanks