Skip to content

Commit

Permalink
fix(watcher): remove greedy regexes - fixes #1490
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed Jan 16, 2018
1 parent fa7e791 commit ecc6671
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/cli/transforms/addDefaultIgnorePatterns.ts
Expand Up @@ -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) {
Expand Down
12 changes: 12 additions & 0 deletions test/fixtures/username.github.io/index.html
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1></h1>
</body>
</html>

0 comments on commit ecc6671

Please sign in to comment.