From de93679b5f79143a3260832423879b4c411475c7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 12 Nov 2024 12:14:17 +0100 Subject: Fix broken G// implementation --- src/work.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/work.c b/src/work.c index 32962ff..38dfe07 100644 --- a/src/work.c +++ b/src/work.c @@ -212,7 +212,7 @@ DEFINE_OPERATOR(G) if (n == PCRE2_ERROR_NOMATCH) operator_dispatch(opi + 1, sv, hl); - if (n < 0) + else if (n < 0) pcre2_bitch_and_die(n, "failed to match regex"); } -- cgit v1.2.3