robrich / gulp-match

Does a vinyl file match a condition?
MIT License
23 stars 9 forks source link

A proposed fix for #4. #5

Closed andrewwakeling closed 4 years ago

andrewwakeling commented 9 years ago

Here is my proposed fix for when you specify an array of minimatch expressions, when none of them include a non-negate expression.

This should continue to respect the default values that gulpmatch use (e.g. the "dot" option).

andrewwakeling commented 9 years ago

@shinnn I removed the unnecessary initialization.

robrich commented 9 years ago

This feels a bit heavy handed. If I have any negate operators, it includes all files. It feels like it should say "if I only have negate operators..."