From 012423338edba3a191465cb7c89d055218c7acd5 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 10 Mar 2016 10:49:11 +0100 Subject: [PATCH] Not to mention regexps, and testing. --- build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.go b/build.go index fab0efcec..f817e182a 100644 --- a/build.go +++ b/build.go @@ -543,7 +543,7 @@ func getBranchSuffix() string { return "" } - validBranchRe := regexp.MustCompile(`^[a-zA-Z0-9_.-]$`) + validBranchRe := regexp.MustCompile(`^[a-zA-Z0-9_.-]+$`) if !validBranchRe.MatchString(branch) { // There's some odd stuff in the branch name. Better skip it. return ""