aboutsummaryrefslogtreecommitdiff
path: root/src/work.c
diff options
context:
space:
mode:
authorThomas Voss <thomas.voss@humanwave.nl> 2026-03-19 16:37:19 +0100
committerThomas Voss <thomas.voss@humanwave.nl> 2026-03-19 16:37:19 +0100
commit19e2b9bc23e71ccafdd754686d4881058b8a1fb5 (patch)
tree4c10c74e8cf2a01d8f26d27436845906734ee70c /src/work.c
parent855d07cfbe7a6e59955560c9a7ca8dffe8ac85bd (diff)
Allow filtering on an empty match
Diffstat (limited to 'src/work.c')
-rw-r--r--src/work.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/work.c b/src/work.c
index 2ae55a2..7013726 100644
--- a/src/work.c
+++ b/src/work.c
@@ -195,8 +195,7 @@ DEFINE_OPERATOR(g)
{
pcre2_match_data *md =
pcre2_match_data_create_from_pattern(ops[opi].re, nullptr);
- int n = pcre2_jit_match(ops[opi].re, sv.p, sv.len, 0, PCRE2_NOTEMPTY,
- md, nullptr);
+ int n = pcre2_jit_match(ops[opi].re, sv.p, sv.len, 0, 0, md, nullptr);
pcre2_match_data_free(md);
if (n == PCRE2_ERROR_NOMATCH)
@@ -211,8 +210,7 @@ DEFINE_OPERATOR(G)
{
pcre2_match_data *md =
pcre2_match_data_create_from_pattern(ops[opi].re, nullptr);
- int n = pcre2_jit_match(ops[opi].re, sv.p, sv.len, 0, PCRE2_NOTEMPTY,
- md, nullptr);
+ int n = pcre2_jit_match(ops[opi].re, sv.p, sv.len, 0, 0, md, nullptr);
pcre2_match_data_free(md);
if (n == PCRE2_ERROR_NOMATCH)