diff --git a/Userland/Libraries/LibRegex/RegexByteCode.cpp b/Userland/Libraries/LibRegex/RegexByteCode.cpp index 8ffe33f265..5d83186708 100644 --- a/Userland/Libraries/LibRegex/RegexByteCode.cpp +++ b/Userland/Libraries/LibRegex/RegexByteCode.cpp @@ -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) {