fix: parse Go RC version (#4319)

This commit is contained in:
Ludovic Fernandez 2024-01-14 21:22:57 +01:00 committed by GitHub
parent 553161d96a
commit ad4a6b2c03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 57 additions and 1 deletions

View file

@ -991,7 +991,7 @@ func trimGoVersion(v string) string {
return ""
}
exp := regexp.MustCompile(`(\d\.\d+)\.\d+`)
exp := regexp.MustCompile(`(\d\.\d+)(?:\.\d+|[a-z]+\d)`)
if exp.MatchString(v) {
return exp.FindStringSubmatch(v)[1]