From 4bdf673f0c23467f726d573f09819ea0d95662b0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 13 Sep 2012 05:23:21 +0900 Subject: [PATCH] if deck contains brackets, escape search string --- aqt/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/browser.py b/aqt/browser.py index 505fda2c4..174380f0e 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -687,7 +687,7 @@ by clicking on one on the left.""")) txt += a + ":" else: txt += a - if " " in txt: + if " " in txt or "(" in txt or ")" in txt: txt = "'%s'" % txt items.append(txt) txt = ""