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