Browse Source

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 <brian.brazil@robustperception.io>
pull/8044/head
Brian Brazil 4 years ago committed by GitHub
parent
commit
cf273f21bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      pkg/labels/regexp_test.go

1
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 {

Loading…
Cancel
Save