npm-package-arg
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -204,4 +204,4 @@ 'use strict' | ||
// ...and various combinations. The username in the beginning is *required*. | ||
const matched = spec.match(/^git\+ssh:\/\/((?:[^@]+)@(?:[^:/]+):[/]?(?:(?:[^/]+[/])?[^/]+?)(?:[.]git)?)(?:#(.*))?$/i) | ||
return matched && { | ||
const matched = spec.match(/^git\+ssh:\/\/([^:]+:[^#]+(?:\.git)?)(?:#(.*))$/i) | ||
return matched && !matched[1].match(/:[0-9]+\/?.*$/i) && { | ||
fetchSpec: matched[1], | ||
@@ -208,0 +208,0 @@ gitCommittish: matched[2] |
{ | ||
"name": "npm-package-arg", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Parse the things that can be arguments to `npm install`", | ||
@@ -5,0 +5,0 @@ "main": "npa.js", |