[scripts] fix parsing TXT RR containing " (#6443)

This commit fixes parsing dig TXT RR that contains `"`.
This commit is contained in:
Simon Lin
2021-04-15 13:45:13 -07:00
committed by GitHub
parent 3fa6fd7b52
commit 796bc8e507
+1 -1
View File
@@ -304,7 +304,7 @@ class OtbrDocker:
# Example TXT entry:
# "xp=\\000\\013\\184\\000\\000\\000\\000\\000"
txt = {}
for entry in re.findall(r'"(.*?)"', line):
for entry in re.findall(r'"(.*?[^\\])"', line):
if entry == "":
continue