Skip to content

pattern broken from 3.x to 4.x #179

@fringd

Description

@fringd

(Thanks for reporting an issue to micromatch! If you haven't already read the contributor guidelines, Please do that now, then proceed to fill out the details below.)

Please describe the minimum necessary steps to reproduce this issue:

const mm = require('micromatch');
const files = ['yoooo.js','foo/baz/something.js', 'bar/baz/something.js', 'anything-else/foo.js', 'anything/__tests__/else.js'];
mm(files, '!(bar/baz|foo|**/__tests_)/**/*.js')

What is happening that shouldn't be?

[ 'foo/baz/something.js',
  'bar/baz/something.js',
  'anything-else/foo.js',
  'anything/__tests__/else.js' ]

all the files match. this is with 4.0.2

What should be happening instead?

[ 'anything-else/foo.js' ]

this worked correctly in 3.x

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