fix non strict branch mode

This commit is contained in:
Mustafa Gezen 2022-04-22 01:44:18 +02:00
parent 45ad998d41
commit a84d5e5b62
1 changed files with 1 additions and 1 deletions

View File

@ -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)