mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibRegex: Use the correct values for comparing LUT entries
Previously we were ignoring the insensitive flag for LUT lookups.
This commit is contained in:
parent
7d01ee63d6
commit
5f012778b8
Notes:
sideshowbarker
2024-07-17 09:42:13 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/5f012778b8 Pull-request: https://github.com/SerenityOS/serenity/pull/14488
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue