Fix ping and channel regexes

This commit is contained in:
Yash Karandikar 2023-07-08 21:04:21 -05:00
parent d91b48da88
commit dc4507e799

View file

@ -288,10 +288,10 @@ fn irc_to_discord_processing(
regex! {
static PING_NICK_1 = r"^([\w+]+)(?::|,)";
static PING_RE_2 = r"(?<=\s|^)@([\w\S]+)";
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"#([A-Za-z-*]+)";
static CHANNEL_RE = r"#(\w+)";
static EMOJI_RE = r":(\w+):";
}