r"\" isn't valid - use "\\" (utils.irc)

This commit is contained in:
jesopo 2019-02-20 16:52:14 +00:00
parent c1881fbafb
commit 98215f66eb

View file

@ -102,7 +102,7 @@ class IRCParsedLine(object):
return s return s
MESSAGE_TAG_ESCAPED = [r"\:", r"\s", r"\\", r"\r", r"\n"] MESSAGE_TAG_ESCAPED = [r"\:", r"\s", r"\\", r"\r", r"\n"]
MESSAGE_TAG_UNESCAPED = [";", " ", r"\", "\r", "\n"] MESSAGE_TAG_UNESCAPED = [";", " ", "\\", "\r", "\n"]
def message_tag_escape(s): def message_tag_escape(s):
return _multi_replace(s, MESSAGE_TAG_UNESCAPED, MESSAGE_TAG_ESCAPED) return _multi_replace(s, MESSAGE_TAG_UNESCAPED, MESSAGE_TAG_ESCAPED)
def message_tag_unescape(s): def message_tag_unescape(s):