wildmatch
wildmatch copied to clipboard
Wildmatch is a pattern matching language for filepaths compatible with Git.
fixes #14 Previously the doublestar token would match greedily as much as it could, so for example, the double star token of the pattern `**/*/file`, when applied to a directory...
In general, our pattern matching in this library doesn't match Git's behavior. We should overhaul our pattern matching such that it does indeed match, ensure that we have options for...
As mentioned in git-lfs/git-lfs#3406, we incorrectly consider `**/*/unicorns/*.bin` not to match `data/rainbows/unicorns/0ee357d9-bc00-4c78-8738-7debdf909d26.bin`, although the pattern `**/unicorns/*.bin` does work. We should update this pattern such that both patterns match that string.