Skip to content

Nesting !() extglob inside of first part of ?() extglob fails #202

@isaacs

Description

@isaacs

isaacs/node-glob#516

> new Minimatch('?(x-!(y)|z)').match('x-a')
false

> new Minimatch('?(x-!(y)|z)').set
[
  [
    /^(?=.)(?:(?!\.)x\-(?:(?!(?:y)|(?!\.z)?)[^/]*?)|(?!\.)z)?$/ {
      _glob: '?(x-!(y)|z)',
      _src: '(?=.)(?:(?!\\.)x\\-(?:(?!(?:y)|(?!\\.z)?)[^/]*?)|(?!\\.)z)?'
    }
  ]
]

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