From 4cfaae96d829957c8fcda9f51c44eb51ca4c4ab0 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Thu, 25 Jun 2015 21:55:17 +0200 Subject: [PATCH] fix(file-list): Use correct find function --- lib/file-list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }) }