1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

LibRegex: Flush compare tables before entering a permanent inverse state

This commit is contained in:
Ali Mohammad Pur 2022-07-10 11:42:31 +04:30 committed by Andreas Kling
parent fbeef409c6
commit 9c5febe800
2 changed files with 46 additions and 38 deletions

View file

@ -459,7 +459,7 @@ ALWAYS_INLINE ExecutionResult OpCode_Compare::execute(MatchInput const& input, M
auto compare_type = (CharacterCompareType)m_bytecode->at(offset++);
if (compare_type == CharacterCompareType::Inverse) {
inverse = true;
inverse = !inverse;
continue;
} else if (compare_type == CharacterCompareType::TemporaryInverse) {