diff options
-rw-r--r-- | lib/utils/semver.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/semver.js b/lib/utils/semver.js index 1294a0239..d60a20522 100644 --- a/lib/utils/semver.js +++ b/lib/utils/semver.js @@ -7,7 +7,7 @@ var semver = "v?([0-9]+)\\.([0-9]+)\\.([0-9]+)([a-zA-Z-][a-zA-Z0-9-]*)?" exports.parse = new RegExp("^\\s*"+semver+"\\s*$") exports.parsePackage = new RegExp( - "^\\s*([a-zA-Z][a-zA-Z0-9_-]*)[-@](" +semver+")\\s*$") + "^\\s*([^\/]+)[-@](" +semver+")\\s*$") exports.parseRange = new RegExp( "^\\s*(" + semver + ")\\s+-\\s+(" + semver + ")\\s*$") exports.rangeReplace = ">=$1 <=$6" |