mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
Update frontend search escapes to new parsing
This commit is contained in:
parent
9e53481003
commit
8d24fb89bf
1 changed files with 1 additions and 1 deletions
|
|
@ -1215,7 +1215,7 @@ QTableView {{ gridline-color: {grid} }}
|
||||||
if i % 2 == 0:
|
if i % 2 == 0:
|
||||||
txt += a + ":"
|
txt += a + ":"
|
||||||
else:
|
else:
|
||||||
txt += re.sub("[*%_]", r"\\\g<0>", a)
|
txt += re.sub(r"[*_\\]", r"\\\g<0>", a)
|
||||||
for c in ' ()"':
|
for c in ' ()"':
|
||||||
if c in txt:
|
if c in txt:
|
||||||
txt = '"{}"'.format(txt.replace('"', '\\"'))
|
txt = '"{}"'.format(txt.replace('"', '\\"'))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue