-
-
Notifications
You must be signed in to change notification settings - Fork 293
Closed
Description
There is a difference between foo* and @(foo)* in the generated regexp fragment for * . As a consequence, first glob matches the string foo, whereas the second does not. Is this intended behavior?
> console.log(new Minimatch('foo*').makeRe(), new Minimatch('foo*').match('foo'))
/^foo[^/]*?$/ true
> console.log(new Minimatch('@(foo)*').makeRe(), new Minimatch('@(foo)*').match('foo'))
/^(?:foo)[^/]+?$/ false
Metadata
Metadata
Assignees
Labels
No labels