-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
(Thanks for reporting an issue to nanomatch! If you haven't already read the contributor guidelines, Please do that now, then procede to fill out the details below.)
Please describe the minimum necessary steps to reproduce this issue:
$ yarn add micromatch
$ node
> console.log(require('micromatch')(['foo', 'bar', 'qux'], ['f*', 'b*']));What is happening (but shouldn't):
TypeError: Cannot read property 'prev' of undefined
at Compiler.<anonymous> (~/node_modules/nanomatch/lib/compilers.js:267:24)
What should be happening instead?
After downgrading nanomatch to v1.2.9, it works as below:
> console.log(require('micromatch')(['foo', 'bar', 'qux'], ['f*', 'b*']));
[ 'foo', 'bar' ]
Metadata
Metadata
Assignees
Labels
No labels