Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arisahl opened this issue Jan 25, 2016 · 2 comments
Open

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

arisahl opened this issue Jan 25, 2016 · 2 comments
Labels

Comments

@arisahl
Copy link

arisahl commented Jan 25, 2016

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
Copy link

I had the same issue and this fix worked.

@jonschlinkert
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants