Skip to content

Commit

Permalink
[fix] For packages with urls -> nodester/nodester-cli#04b43e2
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro committed Jul 12, 2012
1 parent 1f8ea74 commit 6fcef43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/npm.js
Expand Up @@ -42,7 +42,9 @@ module.exports = {
sep = ',';
package = package.replace(/ /g, '');
}
var p = package.split(sep);
// Support for http://github.com/username/module/tarball/master
// and module@0.1.1 type of modules
var p = unescape(decodeURIComponent(package)).split(sep);

p.forEach(function(v, k) {
p[k] = lib.escape_packages(v);
Expand Down

0 comments on commit 6fcef43

Please sign in to comment.