More lenient expression for allowed version tags

This commit is contained in:
Jakob Borg 2016-03-10 13:19:00 +01:00
parent 012423338e
commit 07f944bf48

View File

@ -58,7 +58,7 @@ var (
IsRelease bool
IsBeta bool
LongVersion string
allowedVersionExp = regexp.MustCompile(`^v\d+\.\d+\.\d+(-[a-z0-9]+)*(\.\d+)*(\+\d+-g[0-9a-f]+)?(-dirty)?$`)
allowedVersionExp = regexp.MustCompile(`^v\d+\.\d+\.\d+(-[a-z0-9]+)*(\.\d+)*(\+\d+-g[0-9a-f]+)?(-[^\s]+)?$`)
)
const (