I prefer to use [regexp.test](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/test) instead:

```javascript
return !options.exclude.test(file);
```

If you are OK doing that change, then I'll do the merge.