Skip to content

Commit 33d49d2

Browse files
committed
fix (file-watcher): Better dotfiles detection
Avoid false positive like `../../` Refer to BrowserSync/grunt-browser-sync/issues/118
1 parent 378e268 commit 33d49d2

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)