Nightlies: Remove pre suffix from GetLatestMainBuild regexp (#73978)

Remove pre suffix from GetLatestMainBuild regexp
This commit is contained in:
Dimitris Sotirakis 2023-08-29 10:43:43 +03:00 committed by GitHub
parent da4fd282b3
commit ddd4270c94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,7 +418,7 @@ func GetLatestMainBuild(ctx context.Context, bucket *storage.BucketHandle, path
var latestVersion string var latestVersion string
for i := 0; i < len(files); i++ { for i := 0; i < len(files); i++ {
captureVersion := regexp.MustCompile(`(\d+\.\d+\.\d+-\d+pre)`) captureVersion := regexp.MustCompile(`(\d+\.\d+\.\d+-\d+)`)
if captureVersion.MatchString(files[i]) { if captureVersion.MatchString(files[i]) {
latestVersion = captureVersion.FindString(files[i]) latestVersion = captureVersion.FindString(files[i])
break break