LibRegex: Use the correct values for comparing LUT entries

Previously we were ignoring the insensitive flag for LUT lookups.
This commit is contained in:
Ali Mohammad Pur 2022-07-05 04:57:26 +04:30 committed by Andreas Kling
commit 5f012778b8
Notes: sideshowbarker 2024-07-17 09:42:13 +09:00

View file

@ -538,9 +538,9 @@ ALWAYS_INLINE ExecutionResult OpCode_Compare::execute(MatchInput const& input, M
to = to_ascii_lowercase(to); to = to_ascii_lowercase(to);
needle = to_ascii_lowercase(needle); needle = to_ascii_lowercase(needle);
} }
if (needle > range.to) if (needle > to)
return 1; return 1;
if (needle < range.from) if (needle < from)
return -1; return -1;
return 0; return 0;
}); });