From 37d3a20da8e55a2670eadd52d2320e3e0a69996b Mon Sep 17 00:00:00 2001 From: Jabasukuriputo Wang Date: Thu, 8 Dec 2022 08:35:33 +0800 Subject: [PATCH] fix --- src/utils/regex.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/regex.cc b/src/utils/regex.cc index a29b81cf..0143a0dc 100644 --- a/src/utils/regex.cc +++ b/src/utils/regex.cc @@ -291,7 +291,7 @@ int Regex::search(const std::string& s, SMatch *match) const { 0, 0, match_data, NULL) > 0; } - if (m_pcje != 0 || rc == PCRE2_ERROR_JIT_STACKLIMIT) { + if (m_pcje != 0 || ret == PCRE2_ERROR_JIT_STACKLIMIT) { ret = pcre2_match(m_pc, pcre2_s, s.length(), 0, PCRE2_NO_JIT, match_data, NULL) > 0; }