[tests] fix dig output TXT parsing (#6577)

This commit is contained in:
Simon Lin
2021-05-07 12:37:56 -07:00
committed by GitHub
parent 5b6654d0bc
commit 5b425a1b58
+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