Skip to content

Commit

Permalink
Convert ignored string to regex (#54)
Browse files Browse the repository at this point in the history
Otherwise ignore won't work.
  • Loading branch information
zigomir authored and leo committed Dec 4, 2017
1 parent e0066a5 commit f1a1997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/listening.js
Expand Up @@ -82,7 +82,7 @@ module.exports = async (server, inUse, flags, sockets) => {

// Ignore globs
if (flags.ignore) {
watchConfig.ignored = watchConfig.ignored.concat(flags.ignore)
watchConfig.ignored = watchConfig.ignored.concat(new RegExp(flags.ignore))
}

if (Array.isArray(toWatch)) {
Expand Down

0 comments on commit f1a1997

Please sign in to comment.