again, r"\"
isn't valid.
This commit is contained in:
parent
e343bf3e6a
commit
ddb69685d3
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ 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):
|
||||||
unescaped = _multi_replace(s, MESSAGE_TAG_ESCAPED, MESSAGE_TAG_UNESCAPED)
|
unescaped = _multi_replace(s, MESSAGE_TAG_ESCAPED, MESSAGE_TAG_UNESCAPED)
|
||||||
return unescaped.replace(r"\", "")
|
return unescaped.replace("\\", "")
|
||||||
|
|
||||||
def parse_line(line: str) -> IRCParsedLine:
|
def parse_line(line: str) -> IRCParsedLine:
|
||||||
tags = {} # type: typing.Dict[str, typing.Any]
|
tags = {} # type: typing.Dict[str, typing.Any]
|
||||||
|
|
Loading…
Reference in a new issue