summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorHiroya Fujinami <[email protected]>2024-02-13 09:53:03 +0900
committerGitHub <[email protected]>2024-02-13 09:53:03 +0900
commit4a6384ed9358e8fb8464f6e37efb5477182f01db (patch)
tree94dc5e5c12d5c6dd8f297ac8055c6942011ec5ea /regcomp.c
parent8a345860d3d16b3bca74caf8ee1b405287873eed (diff)
Fix [Bug #20246]: Don't set next_head_exact if a capture is called (#9897)
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 13762364aa..38bfed5631 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -3395,7 +3395,7 @@ next_setup(Node* node, Node* next_node, regex_t* reg)
}
else if (type == NT_ENCLOSE) {
EncloseNode* en = NENCLOSE(node);
- if (en->type == ENCLOSE_MEMORY) {
+ if (en->type == ENCLOSE_MEMORY && !IS_ENCLOSE_CALLED(en)) {
node = en->target;
goto retry;
}