From a2baed1b3c7db9a404bec78d752d9e77f3e1162f Mon Sep 17 00:00:00 2001 From: Mikhail Kornaukhov <66915223+mkornaukhov03@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:33:16 +0300 Subject: [PATCH] Fix Materialized usage (#1178) --- runtime-light/stdlib/string/regex-functions.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime-light/stdlib/string/regex-functions.cpp b/runtime-light/stdlib/string/regex-functions.cpp index 7fb58d173a..b059884767 100644 --- a/runtime-light/stdlib/string/regex-functions.cpp +++ b/runtime-light/stdlib/string/regex-functions.cpp @@ -396,8 +396,7 @@ PCRE2_SIZE set_all_matches(const RegexInfo ®ex_info, int64_t flags, mixed &al if (pattern_order) [[likely]] { for (auto &it : matches) { - auto &group{all_matches[it.get_key()]}; - group.push_back(it.get_value()); + all_matches[it.get_key()].push_back(it.get_value()); } } else { all_matches.push_back(matches);