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
Had a bit of a look through previous issues and from what I gathered some differences are to be expected, is this one of those cases?
Out of curiosity, I cloned the repository and crated a test as follows, which fails:
const{ minimatch, makeRe }=require('../')constt=require('tap')t.test('is this intentional?',function(t){constpattern='some/path/**'constinput='some/path-but-different'constactualFromMinimatch=minimatch(input,pattern)// returns false, as expectedconstactualFromMakeReTest=makeRe(pattern).test(input)// returns truet.equal(actualFromMinimatch,false,'input should not match the pattern')t.equal(actualFromMakeReTest,actualFromMinimatch,'this should be equal?')t.end()})
Note that it does not seem to rely on path-but-different, any path that begins with some/path seems to have this issue; is this intentional?
The text was updated successfully, but these errors were encountered:
Hm. I'd call that a bug, definitely not intentional, and likely a regression with the somewhat recently rewritten parsing logic. Thanks for the clear report and repro test. Should be able to get it fixed soon.
@isaacs Just wanted to jump on and say that I've also run into this bug. Is there any recommended workaround that we could use in the meantime? This is a pretty impactful bug for me. Means ** doesn't work in 100% of cases.
Had a bit of a look through previous issues and from what I gathered some differences are to be expected, is this one of those cases?
Out of curiosity, I cloned the repository and crated a test as follows, which fails:
Note that it does not seem to rely on
path-but-different
, any path that begins withsome/path
seems to have this issue; is this intentional?The text was updated successfully, but these errors were encountered: