diff options
| author | Thomas Voss <thomas.voss@humanwave.nl> | 2026-03-19 16:37:19 +0100 |
|---|---|---|
| committer | Thomas Voss <thomas.voss@humanwave.nl> | 2026-03-19 16:37:19 +0100 |
| commit | 19e2b9bc23e71ccafdd754686d4881058b8a1fb5 (patch) | |
| tree | 4c10c74e8cf2a01d8f26d27436845906734ee70c /src | |
| parent | 855d07cfbe7a6e59955560c9a7ca8dffe8ac85bd (diff) | |
Allow filtering on an empty match
Diffstat (limited to 'src')
| -rw-r--r-- | src/work.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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) |