Skip to content

Commit

Permalink
fix: don't concatenate ignore regexes
Browse files Browse the repository at this point in the history
The initial `ignored` may be undefined. If it isn't then a pipe character should
be inserted. This is all unnecessary though if we build up an array like before
4826c87.
  • Loading branch information
novemberborn authored and remy committed Feb 25, 2016
1 parent 12b8935 commit 7152585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/monitor/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function watch() {

// don't ignore dotfiles if explicitly watched.
if (!dir.match(dotFilePattern)) {
ignored = new RegExp(ignored.source + dotFilePattern.source);
ignored = [ignored, dotFilePattern];
}

var watcher = chokidar.watch(dir, {
Expand Down

0 comments on commit 7152585

Please sign in to comment.