forked from karx/dircord
the start of a string is not a whitespace character
This commit is contained in:
parent
f4d057a075
commit
d1b08a6b82
|
@ -559,7 +559,7 @@ fn irc_to_discord_processing(
|
||||||
|
|
||||||
regex! {
|
regex! {
|
||||||
static PING_NICK_1 = r"^([\w+]+)(?::|,)";
|
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 CONTROL_CHAR_RE = r"\x1f|\x02|\x12|\x0f|\x16|\x03(?:\d{1,2}(?:,\d{1,2})?)?";
|
||||||
static WHITESPACE_RE = r"^\s";
|
static WHITESPACE_RE = r"^\s";
|
||||||
static CHANNEL_RE = r"#([A-Za-z-*]+)";
|
static CHANNEL_RE = r"#([A-Za-z-*]+)";
|
||||||
|
|
Loading…
Reference in a new issue