From 07f944bf48a0c054cd4112a842c37eff2721a939 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 10 Mar 2016 13:19:00 +0100 Subject: [PATCH] More lenient expression for allowed version tags --- cmd/syncthing/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (