mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibRegex: Correctly track current inversion state in the optimizer
This is currently not important as we do not nest TemporaryInverse.
This commit is contained in:
committed by
Andreas Kling
parent
9c5febe800
commit
fe46b2c141
@@ -163,7 +163,8 @@ static bool has_overlap(Vector<CompareTypeAndValuePair> const& lhs, Vector<Compa
|
||||
inverse = !inverse;
|
||||
break;
|
||||
case CharacterCompareType::TemporaryInverse:
|
||||
temporary_inverse = !temporary_inverse;
|
||||
temporary_inverse = true;
|
||||
reset_temporary_inverse = true;
|
||||
break;
|
||||
case CharacterCompareType::AnyChar:
|
||||
// Special case: if not inverted, AnyChar is always in the range.
|
||||
@@ -237,7 +238,8 @@ static bool has_overlap(Vector<CompareTypeAndValuePair> const& lhs, Vector<Compa
|
||||
inverse = !inverse;
|
||||
break;
|
||||
case CharacterCompareType::TemporaryInverse:
|
||||
temporary_inverse = !temporary_inverse;
|
||||
temporary_inverse = true;
|
||||
reset_temporary_inverse = true;
|
||||
break;
|
||||
case CharacterCompareType::AnyChar:
|
||||
// Special case: if not inverted, AnyChar is always in the range.
|
||||
|
||||
Reference in New Issue
Block a user