diff options
Diffstat (limited to 'node_modules/semver/semver.js')
-rw-r--r-- | node_modules/semver/semver.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/semver/semver.js b/node_modules/semver/semver.js index 2939331c8..a3413d7e1 100644 --- a/node_modules/semver/semver.js +++ b/node_modules/semver/semver.js @@ -246,7 +246,7 @@ function valid(version, loose) { exports.clean = clean; function clean(version, loose) { - var s = parse(version, loose); + var s = parse(version.trim().replace(/^[=v]+/, ""), loose); return s ? s.version : null; } |