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
Thanks for the issue. Good timing too, since I'm working on this again this week, to publish the next version of micromatch.
Edit: actually I'm wondering if that is the correct result. I'm pretty sure that when you specify **/*, that means "any number of directories, followed by at least one more directory". Also, I'm pretty sure that /* usually means "one directory", not "zero or one". But given that there is no actual specification for globs and it works differently in different tools, I'm open to feedback.
Edit 2: nevermind, ignore my previous comment, I was thinking the glob would have a file after **/*, but it wouldn't. You were correct.
Source
Actual behavior
The following filepathes is not matched by
minimatch
,micromatch
andpicomatch
for the{file.txt,directory/**/*}
pattern.But if you remove the
/*
part of the pattern, everything works correctly.Expected behavior
Will be matched or documented :)
Code sample
Works fine:
Works bad:
The text was updated successfully, but these errors were encountered: