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

LibRegex: Don't copy forked results twice

This commit is contained in:
Ali Mohammad Pur 2022-11-03 02:05:03 +03:30 committed by Ali Mohammad Pur
parent 464ac85a1b
commit cfcd6e770c

View file

@ -452,8 +452,6 @@ bool Matcher<Parser>::execute(MatchInput const& input, MatchState& state, size_t
(*it) = state;
it->instruction_position = state.fork_at_position;
it->initiating_fork = *input.fork_to_replace;
it->capture_group_matches = state.capture_group_matches;
it->matches = state.matches;
found = true;
break;
}