From 4d1a89705323ca36b455526153763ebf3a783866 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 27 Feb 2018 13:46:08 +0100 Subject: [PATCH] remove even more query chars --- src/search/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search/views.py b/src/search/views.py index 9be6732bb..e6efc21bd 100644 --- a/src/search/views.py +++ b/src/search/views.py @@ -27,7 +27,7 @@ def match_word_re(word): return "[[:<:]]%s[[:>:]]" % word -query_syntax_chars = re.compile(r"[\\/*:(){}?.]") +query_syntax_chars = re.compile(r"[\\/*:(){}?.[\]+]") def remove_query_syntax_chars(query, replace=' '): -- 2.20.1