Merge pull request #4767 from ykolbin/fix_tarball_module_name_v2

fix: backward compatibility fix for tarball modules
This commit is contained in:
Alexandre Strzelewicz 2020-09-28 13:05:14 +02:00 committed by GitHub
commit 39286aba01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ Modularizer.install = function (CLI, module_name, opts, cb) {
Common.logMod(`Installing local NPM module`);
return NPM.localStart(CLI, opts, cb)
}
else if (opts.tarball || /^[a-z_\.-]+tar\.gz$/ig.test(module_name)) {
else if (opts.tarball || /\.tar\.gz$/i.test(module_name)) {
Common.logMod(`Installing TAR module`);
TAR.install(CLI, module_name, opts, cb)
}