Skip to content

Commit 27aee2f

Browse files
committed
Merge pull request #776 from Plou/patch-1
Better dotfiles detection
2 parents f3f077c + 33d49d2 commit 27aee2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/file-watcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports.plugin = function (bs) {
1212
var emitter = bs.emitter;
1313

1414
var defaultWatchOptions = require("immutable").Map({
15-
ignored: /[\/\\]\./
15+
ignored: /^([.][^.\/\\])|([\/\\]+[.][^.])/
1616
})
1717
.mergeDeep(
1818
options.get("watchOptions") || options.get("watchoptions")

0 commit comments

Comments
 (0)