zafarkhaja / jsemver

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

version compare error #72

Closed jzyjinziyan closed 1 month ago

jzyjinziyan commented 1 month ago

hi, i use this library to handle semantic version compare, and i find a bug:

    Version version = Version.parse("1.1.0-a.146");
    System.out.println(version);
    System.out.println(version.satisfies(">1.1.0-a.146"));

when use the satisfies method with the range argument contains > and character , error occur :

Illegal character near 'a.146'

zafarkhaja commented 1 month ago

Hello and thank you for taking the time to contribute.

Unfortunately pre-release versions are not currently supported by Range Expressions.

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

jzyjinziyan commented 1 month ago

thanks much for answer, i found a way to use node-semver library in java and it’s looks work normal.