diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 319131d96..ad6dd8ec7 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -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 (