diff options
author | Hiroya Fujinami <[email protected]> | 2024-02-13 09:53:03 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-13 09:53:03 +0900 |
commit | 4a6384ed9358e8fb8464f6e37efb5477182f01db (patch) | |
tree | 94dc5e5c12d5c6dd8f297ac8055c6942011ec5ea /regcomp.c | |
parent | 8a345860d3d16b3bca74caf8ee1b405287873eed (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |