From cc4571fec67407652b03d6603ada6580de2194dc Mon Sep 17 00:00:00 2001 From: Igor Burago Date: Fri, 14 Oct 2022 20:28:06 +0800 Subject: [PATCH] libregexp: allow up to 127 captured subexpressions in one regexp 128 counting with the entire expression match ($0). --- src/libregexp/regcomp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libregexp/regcomp.h b/src/libregexp/regcomp.h index 4b9a483b..0e03caa6 100644 --- a/src/libregexp/regcomp.h +++ b/src/libregexp/regcomp.h @@ -5,7 +5,7 @@ typedef unsigned char uchar; #define nelem(x) (sizeof(x)/sizeof((x)[0])) -#define NSUBEXP 32 +#define NSUBEXP 128 typedef struct Resublist Resublist; struct Resublist {