Merge pull request 'the start of a string is not a whitespace character' (#21) from missing/dircord:master into master

Reviewed-on: karx/dircord#21
This commit is contained in:
Yash Karandikar 2022-06-16 13:18:13 -05:00
commit 8a676c1919

View file

@ -559,7 +559,7 @@ 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\S]+)";
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-*]+)";