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, textStyle: textStyle,
formattedBody!.replaceAllMapped( formattedBody!.replaceAllMapped(
RegExp( RegExp(
"(<a\\b[^>]*>.*?<\\/a>)|(\\bhttps?:\\/\\/[^\\s<]+)", r"(<a\b[^>]*>.*?<\/a>)|(\\bhttps?:\/\/[^\s<]+)",
caseSensitive: false, caseSensitive: false,
dotAll: true, dotAll: true,
), ),