diff --git a/pkg/labels/regexp_test.go b/pkg/labels/regexp_test.go index 5c59d5dfd..71704102a 100644 --- a/pkg/labels/regexp_test.go +++ b/pkg/labels/regexp_test.go @@ -83,6 +83,7 @@ func TestOptimizeConcatRegex(t *testing.T) { {regex: ".*(?i:abc)def.*", prefix: "", suffix: "", contains: "def"}, {regex: "(?i).*(?-i:abc)def", prefix: "", suffix: "", contains: "abc"}, {regex: ".*(?msU:abc).*", prefix: "", suffix: "", contains: "abc"}, + {regex: "[aA]bc.*", prefix: "", suffix: "", contains: "bc"}, } for _, c := range cases {