| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Split the version-string-to-tuple conversion out of jvm_version() into _jvm_version_str_to_tuple() and add unit tests.
The old regex captured the entire quoted version string, including non-numeric suffixes like "-internal" or "_312", which broke int() conversion downstream. Now only the leading dot-separated digit groups are captured. These examples now work as expected: * OpenJDK 11.0.9.1-internal -> (11, 0, 9, 1) * OpenJDK 1.8.0_312 -> (1, 8, 0)
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
The old regex captured the entire quoted version string, including
non-numeric suffixes like "-internal" or "_312", which broke int()
conversion downstream. Now only the leading dot-separated digit
groups are captured.
Extract jvm_version parsing into a testable helper function.
Closes #91.