don't replace '\\' with '\\' with message-tag unescape

This commit is contained in:
jesopo 2019-02-20 16:33:48 +00:00
parent 7f2b19cee3
commit 47841ed154

View file

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