From 23905302b2e9f85135b062b12b20c65a413994b9 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 11 Nov 2024 20:44:45 +0100 Subject: Enable PCRE2_MULTILINE --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 2fe80fe..0a3e391 100644 --- a/src/main.c +++ b/src/main.c @@ -321,7 +321,7 @@ pattern_comp(u8view_t pat) } else { u8view_t g; uint32_t reopts = PCRE2_DOTALL | PCRE2_MATCH_INVALID_UTF - | PCRE2_UTF; + | PCRE2_MULTILINE | PCRE2_UTF; if (flags.i) reopts |= PCRE2_CASELESS; if (flags.l) @@ -354,7 +354,7 @@ pattern_comp(u8view_t pat) options are disabled, otherwise PCRE2 complains loudly instead of just dealing with itâ„¢. */ if (reopts & PCRE2_LITERAL) - reopts &= ~(PCRE2_DOTALL | PCRE2_UCP); + reopts &= ~(PCRE2_DOTALL | PCRE2_MULTILINE | PCRE2_UCP); int ec; size_t eoff; -- cgit v1.2.3