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

version compare error #72

Closed
jzyjinziyan opened this issue May 7, 2024 · 2 comments
Closed

version compare error #72

jzyjinziyan opened this issue May 7, 2024 · 2 comments

Comments

@jzyjinziyan
Copy link

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

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

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

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

2 participants