mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 04:13:11 +00:00
LibRegex: Fix incorrect case-sensitive comparisons
A tiny typo was introduced in bc8d16ad
which caused all case insensitive
comparisons to fail.
This commit is contained in:
parent
9127d83927
commit
6b2e264093
|
@ -514,7 +514,7 @@ ALWAYS_INLINE void OpCode_Compare::compare_char(const MatchInput& input, MatchSt
|
|||
|
||||
if (input.regex_options & AllFlags::Insensitive) {
|
||||
ch1 = to_ascii_lowercase(ch1);
|
||||
ch2 = to_ascii_uppercase(ch2);
|
||||
ch2 = to_ascii_lowercase(ch2);
|
||||
}
|
||||
|
||||
if (ch1 == ch2) {
|
||||
|
|
Loading…
Reference in a new issue