Update frontend search escapes to new parsing

This commit is contained in:
RumovZ 2020-11-14 20:37:40 +01:00
parent 9e53481003
commit 8d24fb89bf

View File

@ -1215,7 +1215,7 @@ QTableView {{ gridline-color: {grid} }}
if i % 2 == 0:
txt += a + ":"
else:
txt += re.sub("[*%_]", r"\\\g<0>", a)
txt += re.sub(r"[*_\\]", r"\\\g<0>", a)
for c in '  ()"':
if c in txt:
txt = '"{}"'.format(txt.replace('"', '\\"'))