-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Can't match **.internal-test.js #99
Comments
Fixed with by changing glob to |
I noticed this inconsistency. Not sure if this is by design or a bug. To err on the side of caution, I'll reopen the issue. import picomatch from "picomatch";
const isMatch1 = picomatch('**/*.dash-thing.js')
const isMatch2 = picomatch('**/*.thing.js')
const isMatch3 = picomatch('**.dash-thing.js')
const isMatch4 = picomatch('**.thing.js')
console.log(isMatch1('somepath/test.dash-thing.js')) // true
console.log(isMatch2('somepath/test.thing.js')) // true
console.log(isMatch3('somepath/test.dash-thing.js')) // false
console.log(isMatch4('somepath/test.thing.js')) // true |
Good catch. However, the correct way to do what you want is one of the following: const isMatch1 = picomatch('*/*.thing.js')
const isMatch2 = picomatch('**/*.thing.js')
console.log(isMatch1('somepath/test.thing.js')) // true
console.log(isMatch2('somepath/test.thing.js')) // true thanks for the issue! |
I would expect the below to be true
However this works
The text was updated successfully, but these errors were encountered: