Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

semver throws Invalid Version exception with '6.01.0' #15

Open
kapouer opened this issue Jul 25, 2016 · 0 comments
Open

semver throws Invalid Version exception with '6.01.0' #15

kapouer opened this issue Jul 25, 2016 · 0 comments

Comments

@kapouer
Copy link

kapouer commented Jul 25, 2016

I don't know exactly yet which ua contains that version, but

 semver.satisfies('6.01.0', '>=6.0')

throws

TypeError: Invalid Version: 6.01.0
    at new SemVer (/usr/lib/nodejs/semver/semver.js:271:11)
    at compare (/usr/lib/nodejs/semver/semver.js:424:10)
    at gte (/usr/lib/nodejs/semver/semver.js:473:10)
    at cmp (/usr/lib/nodejs/semver/semver.js:490:22)
    at Comparator.test (/usr/lib/nodejs/semver/semver.js:560:10)
    at testSet (/usr/lib/nodejs/semver/semver.js:885:17)
    at Range.test (/usr/lib/nodejs/semver/semver.js:877:9)
    at Function.satisfies (/usr/lib/nodejs/semver/semver.js:898:16)
    at repl:1:8
    at REPLServer.defaultEval (repl.js:272:27)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant