From b409f1b4cf0e2c40ecb9755351401b64207383ed Mon Sep 17 00:00:00 2001 From: deepend Date: Sat, 5 Dec 2026 08:04:19 -0600 Subject: [PATCH] fix Issue #451 --- src/common/url.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/url.c b/src/common/url.c index 4966db30..c0043ba3 100644 --- a/src/common/url.c +++ b/src/common/url.c @@ -545,11 +545,12 @@ make_re (const char *grist) #define LPAR "\\(" #define RPAR "\\)" #define NOPARENS "[^() \t]*" +/* Match non-parenthesized characters individually to avoid nested repetition. */ #define PATH \ "(" \ "(" LPAR NOPARENS RPAR ")" \ "|" \ - "(" NOPARENS ")" \ + "[^() \t]" \ ")*" /* Zero or more occurrences of either of these */ \ "(?