zafarkhaja / jsemver

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

LexerException in 'satisfies' method #73

Open decebals opened 1 week ago

decebals commented 1 week ago

This is the code:

String version = "1.0.0";
String constraint = ">=1.0.0-SNAPSHOT";
Version.parse(version).satisfies(constraint)

For more context see https://github.com/pf4j/pf4j/issues/440.

zafarkhaja commented 1 week ago

Unfortunately in this case it's an intended behavior, since pre-release versions are not currently supported by Range Expressions. I plan to change this behavior as part of #70, but a realistic ETA on this issue is the 4th quarter of the year.

Similar issues for your reference: #24, #54, #55, #72.