lib/build: Allow semver build in version regex (fixes #9267) (#9316)

This commit is contained in:
Peter Badida
2024-01-02 20:43:22 +01:00
committed by GitHub
parent 2abfefc18c
commit fc1c7a3c49
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ var (
LongVersion string
Extra string
allowedVersionExp = regexp.MustCompile(`^v\d+\.\d+\.\d+(-[a-z0-9]+)*(\.\d+)*(\+\d+-g[0-9a-f]+)?(-[^\s]+)?$`)
allowedVersionExp = regexp.MustCompile(`^v\d+\.\d+\.\d+(-[a-z0-9]+)*(\.\d+)*(\+\d+-g[0-9a-f]+|\+[0-9a-z]+)?(-[^\s]+)?$`)
envTags = []string{
"STGUIASSETS",