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)