mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 08:33:06 +00:00
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>
This commit is contained in:
parent
3240cf83f0
commit
cf273f21bb
@ -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…
Reference in New Issue
Block a user