Open poconn opened 1 year ago
Confirmed. I think this may be an issue in minimatch. If this is still important to you, would you mind filing an issue over there? Some specifics of the test I just ran:
minimatch('/tmp/boo/bar.ext', '/tmp/{*.ext,foo/bar}', { matchBase: true, dot: true, noext: true })
=> falsematchBase: false
doesn't change anything here.
noext: false
also doesn't change this.
In a
[{pattern1,pattern2,...}]
section, a slash in one pattern seems to cause the others to only match files in the project root directory instead of including subdirectories:Matches all
**/*.ext
:Only matches
/*.ext
:Version:
Thanks!