From 87b8e557fb5c32ec316be959a075f61f0cb23468 Mon Sep 17 00:00:00 2001 From: Yash Karandikar Date: Sat, 8 Jul 2023 21:10:49 -0500 Subject: [PATCH] Respect the hyphen --- src/irc_discord.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc_discord.rs b/src/irc_discord.rs index 28bfb2c..30bf598 100644 --- a/src/irc_discord.rs +++ b/src/irc_discord.rs @@ -291,7 +291,7 @@ fn irc_to_discord_processing( static PING_RE_2 = r"(?<=\s|^)@(\w+)"; static CONTROL_CHAR_RE = r"\x1f|\x02|\x12|\x0f|\x16|\x03(?:\d{1,2}(?:,\d{1,2})?)?"; static WHITESPACE_RE = r"^\s"; - static CHANNEL_RE = r"#(\w+)"; + static CHANNEL_RE = r"#([\w-]+)"; static EMOJI_RE = r":(\w+):"; }