Skip to content

Commit 37d3a20

Browse files
authored
fix
1 parent 1550e30 commit 37d3a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/regex.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ int Regex::search(const std::string& s, SMatch *match) const {
291291
0, 0, match_data, NULL) > 0;
292292
}
293293

294-
if (m_pcje != 0 || rc == PCRE2_ERROR_JIT_STACKLIMIT) {
294+
if (m_pcje != 0 || ret == PCRE2_ERROR_JIT_STACKLIMIT) {
295295
ret = pcre2_match(m_pc, pcre2_s, s.length(),
296296
0, PCRE2_NO_JIT, match_data, NULL) > 0;
297297
}

0 commit comments

Comments
 (0)