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

End of pattern incorrect matches (ex. "file.txt/" will match "file.txt") #12

Closed
zkry opened this issue Jan 11, 2019 · 0 comments
Closed

Comments

@zkry
Copy link
Contributor

zkry commented Jan 11, 2019

There are a couple of cases where the functionality of wildmatch differs from the .gitattributes style match. This is concerning the end of match strings. There are actually two cases.

The first is when the match string ends in a /, indicating a directory. This will incorrectly match a non-directory file. For example, the search string file.txt/ will match file.txt.

The other case is that /** double star endings, would match files in a similar way to above. So for example, file.txt/** matches file.txt.

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

No branches or pull requests

1 participant