-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Glob patterns with **
are not properly converted to regular expressions
#67
Comments
So, here's the thing about this: what you're asking for is really hard, perhaps impossible, because glob expressions are not "regular" in quite the same sense that regular expressions are. The RegExp that's generated by minimatch's makeRe method are not what node-glob or minimatch actually use for matching The double-star is tricky, and there's this edge case where it has to allow any or no directories, none of which can start with a If someone cleverer than me can adjust the regular expression generation such that it works in more cases, I'd be happy to accept a PR. It seems like this should also go in the documentation of the makeRe function, so that it's less of a footgun, at least. |
Sorry, I thought I was sure that I canceled my comment, when I started On 9/8/16, isaacs notifications@github.com wrote:
|
@mmraff No worries! Actually, I think what you'd posted is a valid bug, separate from this issue (which is about makeRe, not about the base match function). |
The text was updated successfully, but these errors were encountered: