Skip to content

Commit 7d6c3b4

Browse files
committed
Improved regular expression for matching excluded directories and files.
1 parent e1d9b49 commit 7d6c3b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ module.exports.walk = function (dir, options) {
298298

299299
if (!options.exception) {
300300

301-
options.exception = /\.git|\.min|node_modules|bower_components|test|gruntfile|gulpfile/i;
301+
options.exception = /\/(\.git|node_modules|bower_components|test(s)?|gruntfile\.js|gulpfile\.js)$|\.min/i;
302302

303303
}
304304

0 commit comments

Comments
 (0)