diff options
Diffstat (limited to 'node_modules/semver/semver.js')
-rw-r--r-- | node_modules/semver/semver.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/semver/semver.js b/node_modules/semver/semver.js index 8090e0c0d..3702a7b5d 100644 --- a/node_modules/semver/semver.js +++ b/node_modules/semver/semver.js @@ -4,11 +4,11 @@ // This implementation is a *hair* less strict in that it allows // v1.2.3 things, and also tags that don't begin with a char. -var semver = "\\s*[v=]*\\s*([0-9]+)" // major +var semver = "\\s*[v=]*\\s*([0-9]+)" // major + "\\.([0-9]+)" // minor + "\\.([0-9]+)" // patch + "(-[0-9]+-?)?" // build - + "([a-zA-Z-][a-zA-Z0-9-\.:]*)?" // tag + + "([a-zA-Z-+][a-zA-Z0-9-\.:]*)?" // tag , exprComparator = "^((<|>)?=?)\s*("+semver+")$|^$" , xRangePlain = "[v=]*([0-9]+|x|X|\\*)" + "(?:\\.([0-9]+|x|X|\\*)" |