-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
False positive for paths starting with /
#5
Comments
This was referenced May 18, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I haven't had enough time to come up with a solution, but I prepared a PR with tests to reproduce the issue: #4
filepath
is/foo-bar
substr
is/foo
containsPath
returns true, but looks like it should return false ifpartialMatch
is not passed.Looks like the problem is here:
contains-path/index.js
Lines 67 to 69 in f22e056
The text was updated successfully, but these errors were encountered: