From fe0341da5ba862bd206821467118f29cec9640d9 Mon Sep 17 00:00:00 2001 From: "Aleksander W. Oleszkiewicz (Alek)" <24917047+alekwo@users.noreply.github.com> Date: Mon, 16 Feb 2026 09:58:38 +0100 Subject: [PATCH] Fix regex for URL formatting in Slack channel --- nanobot/channels/slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanobot/channels/slack.py b/nanobot/channels/slack.py index ef78887..25af83b 100644 --- a/nanobot/channels/slack.py +++ b/nanobot/channels/slack.py @@ -233,7 +233,7 @@ class SlackChannel(BaseChannel): # Convert URL formatting # Step 6: [text](URL) -> converted_text = re.sub( - r"(^|[^!])\[(.+?)\]\((http.+?)\)", r"\1<\3|\2>", converted_text) + r"(?m)(^|[^!])\[(.+?)\]\((http.+?)\)", r"\1<\3|\2>", converted_text) # Convert image URL # Step 6: ![alt text](URL "title") -> converted_text = re.sub(