jsemver icon indicating copy to clipboard operation
jsemver copied to clipboard

Cannot parse "^5.0.0-beta.1"

Open cmoine opened this issue 5 years ago • 1 comments

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)

cmoine avatar Oct 10 '19 16:10 cmoine

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

asarkar avatar Nov 09 '20 07:11 asarkar

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 avatar Apr 15 '23 07:04 zafarkhaja

Duplicate of #24.

zafarkhaja avatar Apr 15 '23 15:04 zafarkhaja

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

zafarkhaja avatar Jan 14 '24 14:01 zafarkhaja