forked from coop-cloud/tagcmp
fix: get patternCounts to recognise tags with metadata correctly
This commit is contained in:
parent
63ec2c5ff3
commit
aa7b4ff851
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue