-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
ignore option doesn't work if glob path begins with ./ #309
Comments
I believe this is the same issue I am experiencing. To clearify the problem a bit here is what I am seeing. I see in the docs:
Is the |
https://github.com/prettier/prettier/ uses this package and I keep running into this issue prettier/prettier#2110. Are there any plans to support this? I'm set in my was of prefixing dirs with |
Users of https://github.com/adamreisnz/replace-in-file also running into this issue. Happy to add a note in the Readme alerting them of this behaviour, but it seems rather odd to completely disregard ignore paths in this scenario. |
No longer an issue on v9. This was owing to the fact that glob was preserving the excess |
Works as expected:
glob('**/*', {nodir: true, ignore: '**/*.css'}, cb)
All files matching the glob patterns are passed, including files fulfilling the ignored glob:
glob('./**/*', {nodir: true, ignore: '**/*.css'}, cb)
Does it work like this for a reason?
The text was updated successfully, but these errors were encountered: