Skip to content

Commit

Permalink
Merge pull request #4593 from adunkey/master
Browse files Browse the repository at this point in the history
fix for huntr
  • Loading branch information
Unitech committed Apr 12, 2020
2 parents 6e9bb1e + a71865b commit 45db453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/API/Modules/Modularizer.js
Expand Up @@ -38,7 +38,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 || module_name.indexOf('.tar.gz') > -1) {
else if (opts.tarball || /^[a-z_\.-]+tar\.gz$/ig.test(module_name)) {
Common.logMod(`Installing TAR module`);
TAR.install(CLI, module_name, opts, cb)
}
Expand Down

0 comments on commit 45db453

Please sign in to comment.