diff --git a/lib/core/config.js b/lib/core/config.js index be23c674..8683dd3a 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -192,13 +192,13 @@ Config.prototype.loadChainTrackerFile = function() { function findMatchingExpression(filename, filesExpressions) { for (let fileExpression of filesExpressions) { var matchingFiles = utils.filesMatchingPattern(fileExpression); - for (matchFile of matchingFiles) { + for (let matchFile of matchingFiles) { if (matchFile === filename) { - return path.dirname(fileExpression).replace(/\*/g, '') + return path.dirname(fileExpression).replace(/\*/g, ''); } } } - return path.dirname(filename) + return path.dirname(filename); } Config.prototype.loadFiles = function(files) {