Commit 70b8d35
committed
Fix jvm_version parsing of non-numeric version suffixes
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)1 parent 7a193cc commit 70b8d35
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments