diff --git a/lib/filter.js b/lib/filter.js index 8aa00c4..e7795d3 100644 --- a/lib/filter.js +++ b/lib/filter.js @@ -20,7 +20,7 @@ function logic_html(str, data) { if (path && exclude && exclude.length) { for (var i = 0, len = exclude.length; i < len; i++) { - if (minimatch(path, exclude[i])) return str; + if (minimatch(path, exclude[i], {matchBase: true})) return str; } } @@ -46,7 +46,7 @@ function logic_css(str, data) { if (path && exclude && exclude.length) { for (var i = 0, len = exclude.length; i < len; i++) { - if (minimatch(path, exclude[i])) return str; + if (minimatch(path, exclude[i], {matchBase: true})) return str; } } @@ -76,7 +76,7 @@ function logic_js(str, data) { if (path && exclude && exclude.length) { for (var i = 0, len = exclude.length; i < len; i++) { - if (minimatch(path, exclude[i])) return str; + if (minimatch(path, exclude[i], {matchBase: true})) return str; } }