mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:37:36 +00:00
LibRegex: Fix incorrect case-sensitive comparisons
A tiny typo was introduced in bc8d16ad
which caused all case insensitive
comparisons to fail.
This commit is contained in:
parent
9127d83927
commit
6b2e264093
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ ALWAYS_INLINE void OpCode_Compare::compare_char(const MatchInput& input, MatchSt
|
||||||
|
|
||||||
if (input.regex_options & AllFlags::Insensitive) {
|
if (input.regex_options & AllFlags::Insensitive) {
|
||||||
ch1 = to_ascii_lowercase(ch1);
|
ch1 = to_ascii_lowercase(ch1);
|
||||||
ch2 = to_ascii_uppercase(ch2);
|
ch2 = to_ascii_lowercase(ch2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ch1 == ch2) {
|
if (ch1 == ch2) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue