fix too eager times exclusion regex

This commit is contained in:
2026-07-27 22:18:36 +02:00
parent 72b8ef06d0
commit dbae6cedf9
+1 -1
View File
@@ -50,7 +50,7 @@ impl DisbahnClient {
}
fn html_to_discord_markdown(input: &str) -> String {
static RE_TIMES: &Lazy<Regex> = regex!(r#"^.*<br\s*/>\s*<br\s*/>"#i);
static RE_TIMES: &Lazy<Regex> = regex!(r#"^.*?<br\s*/>\s*<br\s*/>"#i);
static RE_BOLD: &Lazy<Regex> = regex!(r#"<b\s*>((.|\n)*?)</b\s*>"#i);
static RE_ITALIC: &Lazy<Regex> = regex!(r#"<i\s*>((.|\n)*?)</i\s*>"#i);
static RE_STRIKETHROUGH: &Lazy<Regex> = regex!(r#"<s\s*>((.|\n)*?)</s\s*>"#i);