Skip to content

Commit

Permalink
Use better regex
Browse files Browse the repository at this point in the history
  • Loading branch information
todd committed Jul 4, 2015
1 parent 95b0f23 commit 37fcf33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/domain/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function(dirs, baseDir, changed){
ignoreDotFiles: false
}, function(fileName, currentStat, previousStat){
if(!!currentStat || !!previousStat){
if(/node_modules|package.tar.gz|_package|\.sw(o|p)/gi.test(fileName) === false){
if(/node_modules|package.tar.gz|_package|\.sw[op]/gi.test(fileName) === false){
changed(null, fileName);
}
}
Expand Down

1 comment on commit 37fcf33

@Kimtaro
Copy link
Contributor

@Kimtaro Kimtaro commented on 37fcf33 Jul 6, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Larry Wall is pleased with this commit.

Please sign in to comment.