From cf273f21bb4ec33673793f43e5164f31f76de5d3 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Mon, 12 Oct 2020 12:17:29 +0100 Subject: [PATCH] Add a testcase for #8040 (#8042) This was already fixed by #8013, but add a test case anyway in case the regexp engine changes in future. Signed-off-by: Brian Brazil --- pkg/labels/regexp_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/labels/regexp_test.go b/pkg/labels/regexp_test.go index 5c59d5dfd1..71704102a0 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 {