Skip to content

Case insensitive FastRegexMatcher doesn't check all folds #14066

Closed
@colega

Description

@colega

What did you do?

I ran the mimir-prometheus FuzzFastRegexMatcher_WithStaticallyDefinedRegularExpressions for a while, and found a bug.

The input string "ſſs" is not matched by the case-insensitive regular expression "(?i:(foo1|foo2|aaa|bbb|ccc|ddd|eee|fff|ggg|hhh|iii|lll|mmm|nnn|ooo|ppp|qqq|rrr|sss|ttt|uuu|vvv|www|xxx|yyy|zzz))",.

What did you expect to see?

I expected that string to be matched, as the golang's regexp package matches it.

What did you see instead? Under which circumstances?

It wasn't matched.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions