Skip to content

Commit

Permalink
fix: backward compatibility fix for tarball modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ykolbin committed Jul 3, 2020
1 parent c79713c commit 1eccc5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/API/Modules/Modularizer.js
Expand Up @@ -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)
}
Expand Down

0 comments on commit 1eccc5b

Please sign in to comment.