-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Bug?] Inconsistent matching patterns for files & folders #25
Comments
@wenfangdu Thanks for your issue, I think it isn't a bug, it is an interesting scenario. When
Hope my explanation helps you understand this scenario. |
Which behavior/implementation are you referring to? Do you mean " |
@dukeluo |
@dukeluo Or |
@wenfangdu The behavior of the globstar But this plugin cant do like this. For example, in your case ( |
@dukeluo I understand, but the folder matching mechanism is not the same as the file one, e.g. if I set |
I got your point. I will consider how to deal with this case. |
@wenfangdu The new version 2.4.0 is released, you can try it now. |
@dukeluo Sweet, thanks. |
…folders other than the root one
First of all, thank you for creating this.
Here are my current rules:
As you can see, the file name
foB
didn't throw the error:But if I change the rules to:
Now it works as expected:
Notice the file pattern uses
**
whereas the folder pattern uses*
, is this inconsistency intentional or a bug?The text was updated successfully, but these errors were encountered: