diff options
Diffstat (limited to 'node_modules/semver/semver.js')
-rw-r--r-- | node_modules/semver/semver.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/node_modules/semver/semver.js b/node_modules/semver/semver.js index 3702a7b5d..01fb1c1fd 100644 --- a/node_modules/semver/semver.js +++ b/node_modules/semver/semver.js @@ -84,7 +84,7 @@ function validPackage (version) { // ">1.0.2 <2.0.0" like 1.0.3 - 1.9999.9999 var starExpression = /(<|>)?=?\s*\*/g , starReplace = "" - , compTrimExpression = new RegExp("((<|>)?=?)\\s*(" + , compTrimExpression = new RegExp("((<|>)?=|<|>)\\s*(" +semver+"|"+xRangePlain+")", "g") , compTrimReplace = "$1$3" @@ -149,7 +149,6 @@ function replaceXRange (version) { } else if (!p || p === "*" || p.toLowerCase() === "x") { ret = ">="+M+"."+m+".0- <"+M+"."+(+m+1)+".0-" } - //console.error("parseXRange", [].slice.call(arguments), ret) return ret }) } |