use raw string for link regex

This commit is contained in:
Henry Hiles 2026-05-19 19:57:01 -04:00
commit bbd157a584
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -177,7 +177,7 @@ class EventRenderer extends ConsumerWidget {
textStyle: textStyle,
formattedBody!.replaceAllMapped(
RegExp(
"(<a\\b[^>]*>.*?<\\/a>)|(\\bhttps?:\\/\\/[^\\s<]+)",
r"(<a\b[^>]*>.*?<\/a>)|(\\bhttps?:\/\/[^\s<]+)",
caseSensitive: false,
dotAll: true,
),