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

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

Closed
cmoine opened this issue Oct 10, 2019 · 4 comments
Closed

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

cmoine opened this issue Oct 10, 2019 · 4 comments

Comments

@cmoine
Copy link

cmoine commented Oct 10, 2019

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
Copy link

asarkar commented Nov 9, 2020

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

@zafarkhaja
Copy link
Owner

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
Copy link
Owner

Duplicate of #24.

@zafarkhaja
Copy link
Owner

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

@zafarkhaja zafarkhaja closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants