Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Zörb committed Jun 13, 2019
1 parent 11202b3 commit 17a6426
Show file tree
Hide file tree
Showing 7 changed files with 2,443 additions and 2,725 deletions.
4 changes: 4 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ cli.flags = _.reduce(
try {
res[key] = read(val);
} catch (error) {}

break;
case 'base':
res.basePath = val;
Expand All @@ -87,13 +88,15 @@ cli.flags = _.reduce(
if (_.isString(val) || _.isRegExp(val)) {
val = [val];
}

res.ignore = _.map(val || [], ignore => {
// Check regex
const match = ignore.match(/^\/(.*)\/([igmy]+)?$/);

if (match) {
return new RegExp(_.escapeRegExp(match[1]), match[2]);
}

return ignore;
});
break;
Expand Down Expand Up @@ -166,5 +169,6 @@ setTimeout(() => {
if (ok) {
return;
}

run();
}, 100);
Loading

0 comments on commit 17a6426

Please sign in to comment.