You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe I face a bug today, it seems that the double star (**) does not seem to work when there is an escaped character in the pattern such as:
for a given path app/[name]/page.tsx where [name] is not a parameter but the name of a folder, the pattern app/\[name\]/** would not match the path.
Here is a test case for doublestar_test.go: {"e/\\[owner\\]/*", "e/[owner]/p.tsx", true, true, nil, false, false, true, !onWindows, 1, 0},
I will try to find and fix the bug but I expect that you will be faster than me to identify the problem.
Thank you for your help!
The text was updated successfully, but these errors were encountered:
Hey there! Sorry for the slow reply! Definitely looks like you found a bug. I checked out your PR and you got it mostly right - there were two places where we did not want to call unescapeMeta. I've fixed those and added a few more test cases. I also made SplitPattern unescape the base path that is returned.
Hello @bmatcuk ,
Thank you for the lib, it is really nice!
I believe I face a bug today, it seems that the double star (**) does not seem to work when there is an escaped character in the pattern such as:
for a given path
app/[name]/page.tsx
where[name]
is not a parameter but the name of a folder, the patternapp/\[name\]/**
would not match the path.Here is a test case for
doublestar_test.go
:{"e/\\[owner\\]/*", "e/[owner]/p.tsx", true, true, nil, false, false, true, !onWindows, 1, 0},
I will try to find and fix the bug but I expect that you will be faster than me to identify the problem.
Thank you for your help!
The text was updated successfully, but these errors were encountered: