We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 336de41 commit 19d4646Copy full SHA for 19d4646
1 file changed
src/java/jres/jre.go
@@ -317,6 +317,12 @@ func normalizeVersionPattern(version string) string {
317
if strings.Contains(version, "*") {
318
return version
319
}
320
+ // Exact patch version (e.g. "17.0.13") — already fully specified, don't append ".*"
321
+ // which would produce an unmatchable pattern like "17.0.13.*".
322
+ exactVersionRegex := regexp.MustCompile(`^\d+\.\d+\.\d+$`)
323
+ if exactVersionRegex.MatchString(version) {
324
+ return version
325
+ }
326
return version + ".*"
327
328
0 commit comments