From ecc66711aae644c3861078ea519009fd1b106cd3 Mon Sep 17 00:00:00 2001 From: Shane Osbourne Date: Tue, 16 Jan 2018 11:10:38 +0000 Subject: [PATCH] fix(watcher): remove greedy regexes - fixes #1490 --- lib/cli/transforms/addDefaultIgnorePatterns.ts | 8 ++++---- test/fixtures/username.github.io/index.html | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 test/fixtures/username.github.io/index.html diff --git a/lib/cli/transforms/addDefaultIgnorePatterns.ts b/lib/cli/transforms/addDefaultIgnorePatterns.ts index 03330610d..49bec1ef0 100644 --- a/lib/cli/transforms/addDefaultIgnorePatterns.ts +++ b/lib/cli/transforms/addDefaultIgnorePatterns.ts @@ -3,10 +3,10 @@ import {List} from "immutable"; const defaultIgnorePatterns = [ /node_modules/, /bower_components/, - /\.sass-cache/, - /\.vscode/, - /\.git/, - /\.idea/ + '.sass-cache', + '.vscode', + '.git', + '.idea', ]; export function addDefaultIgnorePatterns(incoming) { diff --git a/test/fixtures/username.github.io/index.html b/test/fixtures/username.github.io/index.html new file mode 100644 index 000000000..9d98d2d76 --- /dev/null +++ b/test/fixtures/username.github.io/index.html @@ -0,0 +1,12 @@ + + + + + + + Document + + +

+ +