-
-
Notifications
You must be signed in to change notification settings - Fork 487
ignore option doesn't work if glob path begins with ./ #309
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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: