diff --git a/lib/file-list.js b/lib/file-list.js index 65a462da0..04649fdc7 100644 --- a/lib/file-list.js +++ b/lib/file-list.js @@ -85,7 +85,7 @@ var List = function (patterns, excludes, emitter, preprocess, batchInterval) { // Returns `undefined` if no match, otherwise the matching // pattern. List.prototype._isExcluded = function (path) { - return this._excludes.find(function (pattern) { + return _.find(this._excludes, function (pattern) { return mm(path, pattern) }) }