register: fix ignoreRegex compatibility check
This commit is contained in:
@@ -97,7 +97,7 @@ module.exports = function (opts) {
|
||||
// normalise options
|
||||
opts = opts || {};
|
||||
if (_.isRegExp(opts)) opts = { ignore: opts };
|
||||
opts.ignore = opts.ignore || opts.ignoreRegex;
|
||||
if (opts.ignoreRegex != null) opts.ignore = opts.ignoreRegex;
|
||||
|
||||
if (opts.only != null) onlyRegex = opts.only;
|
||||
if (opts.ignore != null) ignoreRegex = opts.ignore;
|
||||
|
||||
Reference in New Issue
Block a user