remove even more query chars
authorJan Szejko <janek37@gmail.com>
Tue, 27 Feb 2018 12:46:08 +0000 (13:46 +0100)
committerJan Szejko <janek37@gmail.com>
Tue, 27 Feb 2018 14:43:41 +0000 (15:43 +0100)
src/search/views.py

index 9be6732..e6efc21 100644 (file)
@@ -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=' '):