Skip to content

Matchers with an opening parenthesis do not work. #45

Description

@george-thomas-hill

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions