Merge branch 'master' into experimental

Conflicts:
	README.md
	lib/6to5/register.js
This commit is contained in:
Sebastian McKenzie
2014-11-07 13:54:59 +11:00
3 changed files with 11 additions and 3 deletions

View File

@@ -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;