zafarkhaja / jsemver

Java implementation of the SemVer Specification
MIT License
429 stars 82 forks source link

Cannot parse "^5.0.0-beta.1" #54

Closed cmoine closed 5 months ago

cmoine commented 4 years ago

I suppose it is the "-beta" which makes trouble:

Illegal character near 'beta.1'
    at com.github.zafarkhaja.semver.expr.Lexer.tokenize(Lexer.java:218)
    at com.github.zafarkhaja.semver.expr.ExpressionParser.parse(ExpressionParser.java:86)
    at com.github.zafarkhaja.semver.expr.ExpressionParser.parse(ExpressionParser.java:43)
    at com.github.zafarkhaja.semver.Version.satisfies(Version.java:325)
asarkar commented 3 years ago

I don't think this library is maintained any more. You may want to check out https://github.com/asarkar/jsemver.

zafarkhaja commented 1 year ago

Hello Christophe! Sorry it took me this long to get back to you.

You're right, the current grammar doesn't support pre-release versions.

I don't know if it's still relevant to you, but I'll investigate the possibility of extending it.

zafarkhaja commented 1 year ago

Duplicate of #24.

zafarkhaja commented 5 months ago

Closing this issue in favor of #70, the progress can be followed from there.