diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-11-11 20:44:45 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-11-11 20:44:45 +0100 |
commit | 23905302b2e9f85135b062b12b20c65a413994b9 (patch) | |
tree | 8f65d42cabc65ba6dca40aeb4c25389cc3565313 | |
parent | 7dc24010d2332b5f639892db602a387bc6616277 (diff) |
Enable PCRE2_MULTILINE
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |