From 28f2e8f24d50bddc3b80b3bb913ce641223aad21 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 20 Jul 2014 21:39:52 +0200 Subject: [PATCH] Allow beta versions --- 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 6f90365e..016b7b8b 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -53,7 +53,7 @@ var l = logger.DefaultLogger func init() { if Version != "unknown-dev" { // If not a generic dev build, version string should come from git describe - exp := regexp.MustCompile(`^v\d+\.\d+\.\d+(-\d+-g[0-9a-f]+)?(-dirty)?$`) + exp := regexp.MustCompile(`^v\d+\.\d+\.\d+(-beta\d+)?(-\d+-g[0-9a-f]+)?(-dirty)?$`) if !exp.MatchString(Version) { l.Fatalf("Invalid version string %q;\n\tdoes not match regexp %v", Version, exp) }