aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-11 20:44:45 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-11 20:44:45 +0100
commit23905302b2e9f85135b062b12b20c65a413994b9 (patch)
tree8f65d42cabc65ba6dca40aeb4c25389cc3565313 /src/main.c
parent7dc24010d2332b5f639892db602a387bc6616277 (diff)
Enable PCRE2_MULTILINE
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
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;