fix: get patternCounts to recognise tags with metadata correctly

This commit is contained in:
knoflook 2021-10-07 14:29:26 +02:00
parent 63ec2c5ff3
commit aa7b4ff851
Signed by: knoflook
GPG Key ID: D6A1D0E8FC4FEF1C
1 changed files with 1 additions and 0 deletions

View File

@ -289,6 +289,7 @@ func patternMatches(tag string) error {
// patternCounts determines if tags match unsupported patterns by counting occurences of matches
func patternCounts(tag string) error {
v := regexp.MustCompile(DotPattern)
tag = strings.Split(tag, "+")[0]
if m := v.FindAllStringIndex(tag, -1); len(m) > 1 {
return fmt.Errorf("'%s' is not supported (%s)", tag, DotPattern)
}