From 6b2e264093a6cb93816ad0f20c1a553db73430ce Mon Sep 17 00:00:00 2001 From: sin-ack Date: Wed, 16 Jun 2021 10:12:13 +0000 Subject: [PATCH] LibRegex: Fix incorrect case-sensitive comparisons A tiny typo was introduced in bc8d16ad which caused all case insensitive comparisons to fail. --- Userland/Libraries/LibRegex/RegexByteCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {