From aa7b4ff851f63e0c3c012eede33a7bce0b45bf01 Mon Sep 17 00:00:00 2001 From: knoflook Date: Thu, 7 Oct 2021 14:29:26 +0200 Subject: [PATCH] fix: get patternCounts to recognise tags with metadata correctly --- tagcmp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tagcmp.go b/tagcmp.go index dec2450..cee2e48 100644 --- a/tagcmp.go +++ b/tagcmp.go @@ -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) }