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

Fix Java version parsing and add some tests for it #10

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

mat-1
Copy link
Contributor

@mat-1 mat-1 commented Dec 23, 2024

The attempted fix in 357a0ca doesn't actually work, since regex_captures destructures to (whole, first group, second group), and the first part was being treated as the major version (instead of the second part). This makes both the major and minor version be parsed as 24. This PR fixes that, moves the parsing code to a separate function, and adds a few tests for some Java versions I have installed.

@mat-1 mat-1 changed the title Fix java early access version parsing and add parse tests Fix Java version parsing and add some tests for it Dec 23, 2024
@ShayBox ShayBox merged commit 27640af into master Dec 23, 2024
@mat-1 mat-1 deleted the better-version-parsing branch December 23, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants