From a84d5e5b624686f57a77581b0b8a2533bb5e4470 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Fri, 22 Apr 2022 01:44:18 +0200 Subject: [PATCH] fix non strict branch mode --- pkg/misc/regex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/misc/regex.go b/pkg/misc/regex.go index 04c12f9..1846a7d 100644 --- a/pkg/misc/regex.go +++ b/pkg/misc/regex.go @@ -9,7 +9,7 @@ import ( func GetTagImportRegex(pd *data.ProcessData) *regexp.Regexp { branchRegex := fmt.Sprintf("%s%d%s", pd.ImportBranchPrefix, pd.Version, pd.BranchSuffix) if !pd.StrictBranchMode { - branchRegex += ".+" + branchRegex += "(?:.+|)" } regex := fmt.Sprintf("refs/tags/(imports/(%s)/(.*))", branchRegex)