Negative matching doesn't work for `isMatch`
dpopp07 opened this issue · 1 comments
dpopp07 commented
I have come across an issue with the isMatch
method in that it is returning false
when I expect it to be true
using a negative pattern.
Even the example in the README:
matcher.isMatch('rainbow', '!unicorn');
//=> true
returns false
. Here's is the output from my REPL:
> const m = require('matcher')
> m.isMatch('rainbow', '!unicorn');
false
> |
This is either a bug or a mistake in the documentation. If I have time this week, I'll try to make a PR for this. Just thought it should be on your radar
sindresorhus commented
That's a bug. Good catch :)