r"\"
isn't valid - use "\\"
(utils.irc)
This commit is contained in:
parent
c1881fbafb
commit
98215f66eb
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue