-
Notifications
You must be signed in to change notification settings - Fork 115
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
Weird behavior with ignore pattern and **/* #343
Comments
Hello, @timtim17, Thanks for the issue and the detailed description of the problem. Yeap, this is a bug. The bug relates to our pattern processing mechanism on the input. We must always exclude files that start with a dot when their path covers by a common pattern ( If you specify the |
To solve this problem, we need to make a breaking change. We need to enable matching for files that start with a dot for negative patterns. |
I think this issue can be fixed in the current major version of the package, because this change affects only a part of the patterns. Already fixed in the master. Will be shipped with |
Environment
Actual behavior
Results A: Works as expected. Gets all txt files, ignoring any in the test directory.
Results B: Does not work as expected. It does correctly give me all text files in the foo folder, except for the ignored
ignore.txt
, but it also gives me one of (but notably not all) files in the test directory.Results C: Works as expected, after making a slight change to the ignore option.
Expected behavior
Steps to reproduce
Code sample
Originally posted by @timtim17 in #329 (comment)
The text was updated successfully, but these errors were encountered: