mirror of https://github.com/jesopo/irctokens
hanging \ at the end of a tag value is now handled by the while loop
This commit is contained in:
parent
c168ce00b5
commit
05aedf08ac
|
@ -4,8 +4,6 @@ TAG_UNESCAPED = ["\\", " ", ";", "\r", "\n"]
|
|||
TAG_ESCAPED = ["\\\\", "\\s", "\\:", "\\r", "\\n"]
|
||||
|
||||
def _unescape_tag(value: str):
|
||||
if value.endswith("\\") and not value.endswith("\\\\"):
|
||||
value = value[:-1]
|
||||
unescaped, escaped = "", list(value)
|
||||
while escaped:
|
||||
current = escaped.pop(0)
|
||||
|
|
Loading…
Reference in New Issue