From dbae6cedf9905f4c06170920000a6b12fa1c39d4 Mon Sep 17 00:00:00 2001 From: Niklas Elsbrock Date: Mon, 27 Jul 2026 22:18:36 +0200 Subject: [PATCH] fix too eager times exclusion regex --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 61e0aae..881cba2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -50,7 +50,7 @@ impl DisbahnClient { } fn html_to_discord_markdown(input: &str) -> String { - static RE_TIMES: &Lazy = regex!(r#"^.*\s*"#i); + static RE_TIMES: &Lazy = regex!(r#"^.*?\s*"#i); static RE_BOLD: &Lazy = regex!(r#"((.|\n)*?)"#i); static RE_ITALIC: &Lazy = regex!(r#"((.|\n)*?)"#i); static RE_STRIKETHROUGH: &Lazy = regex!(r#"((.|\n)*?)"#i);