From 5677a670253011e084e4a8a8dbf53e5f9f2875b0 Mon Sep 17 00:00:00 2001 From: abdo Date: Mon, 19 Oct 2020 01:06:41 +0300 Subject: [PATCH] Escape double quotes in search --- qt/aqt/browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/aqt/browser.py b/qt/aqt/browser.py index 14e461d31..11f0eaa5c 100644 --- a/qt/aqt/browser.py +++ b/qt/aqt/browser.py @@ -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 = ""