Escape double quotes in search
This commit is contained in:
parent
06292a45f3
commit
5677a67025
@ -1221,9 +1221,9 @@ QTableView {{ gridline-color: {grid} }}
|
||||
txt += a + ":"
|
||||
else:
|
||||
txt += re.sub(r"(\*|%|_)", r"\\\1", a)
|
||||
for chr in " ()":
|
||||
for chr in ' ()"':
|
||||
if chr in txt:
|
||||
txt = '"%s"' % txt
|
||||
txt = '"%s"' % txt.replace('"', '\\"')
|
||||
break
|
||||
items.append(txt)
|
||||
txt = ""
|
||||
|
Loading…
Reference in New Issue
Block a user