hanging \ at the end of a tag value is now handled by the while loop

This commit is contained in:
jesopo 2020-03-23 18:24:04 +00:00
parent c168ce00b5
commit 05aedf08ac
1 changed files with 0 additions and 2 deletions

View File

@ -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)