Skip to content

a slash can break the extglob syntax #274

@hgl

Description

@hgl
console.log(new Minimatch("@(a|b)").makeRe());
console.log(new Minimatch("@(a/|b)").makeRe());

outputs

/^(?:a|b)$/
/^@\(a\/\|b\)$/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions