diff --git a/Userland/Libraries/LibRegex/RegexByteCode.cpp b/Userland/Libraries/LibRegex/RegexByteCode.cpp index 594de498311..de7ce26444d 100644 --- a/Userland/Libraries/LibRegex/RegexByteCode.cpp +++ b/Userland/Libraries/LibRegex/RegexByteCode.cpp @@ -538,9 +538,9 @@ ALWAYS_INLINE ExecutionResult OpCode_Compare::execute(MatchInput const& input, M to = to_ascii_lowercase(to); needle = to_ascii_lowercase(needle); } - if (needle > range.to) + if (needle > to) return 1; - if (needle < range.from) + if (needle < from) return -1; return 0; });