We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Matchers with an opening parenthesis do not work.
const anymatch = require('anymatch'); console.log(anymatch('**/node_modules/**', '/absolute/path/to/node_modules/somelib/index.js')); // true console.log(anymatch('**/node_modules(/**', '/absolute/path/to/node_modules(/somelib/index.js')); // I expect true but get false.
The only difference between the two anymatch() calls is that I added an opening parenthesis after "node_modules".
I have tried escaping the opening parenthesis with a \, but that didn't help.
The text was updated successfully, but these errors were encountered:
@george-thomas-hill you would need to use \\ to escape the bracket.
\\
The following works:
console.log( anymatch( '**/node_modules\\(/**', '/absolute/path/to/node_modules(/somelib/index.js' ) ); // => true
Sorry, something went wrong.
No branches or pull requests
Matchers with an opening parenthesis do not work.
The only difference between the two anymatch() calls is that I added an opening parenthesis after "node_modules".
I have tried escaping the opening parenthesis with a \, but that didn't help.
The text was updated successfully, but these errors were encountered: