Skip to content

Commit

Permalink
Merge pull request #1 from adunkey/adunkey-patch-1
Browse files Browse the repository at this point in the history
Update Modularizer.js
  • Loading branch information
adunkey authored Feb 1, 2020
2 parents 6e9bb1e + 36220bb commit a71865b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/API/Modules/Modularizer.js
Original file line number Diff line number Diff line change
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 a71865b

Please sign in to comment.