diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2022-11-03 02:05:03 +0330 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-11-17 20:13:04 +0330 |
commit | cfcd6e770ce9b81164136c2d8e9763c7d2b2e9f9 (patch) | |
tree | b1f153d44a63e0316f9194d2d9149b146e9501e7 /Userland/Libraries/LibRegex | |
parent | 464ac85a1bd8be4e0a00a7058add8314799d165e (diff) | |
download | serenity-cfcd6e770ce9b81164136c2d8e9763c7d2b2e9f9.zip |
LibRegex: Don't copy forked results twice
Diffstat (limited to 'Userland/Libraries/LibRegex')
-rw-r--r-- | Userland/Libraries/LibRegex/RegexMatcher.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibRegex/RegexMatcher.cpp b/Userland/Libraries/LibRegex/RegexMatcher.cpp index 109a7324ef..2684db4b0f 100644 --- a/Userland/Libraries/LibRegex/RegexMatcher.cpp +++ b/Userland/Libraries/LibRegex/RegexMatcher.cpp @@ -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; } |