remove more query chars
authorJan Szejko <janek37@gmail.com>
Tue, 27 Feb 2018 09:18:53 +0000 (10:18 +0100)
committerJan Szejko <janek37@gmail.com>
Tue, 27 Feb 2018 09:18:53 +0000 (10:18 +0100)
src/search/views.py

index 6cb6bc5..9be6732 100644 (file)
@@ -27,7 +27,7 @@ def match_word_re(word):
         return "[[:<:]]%s[[:>:]]" % word
 
 
         return "[[:<:]]%s[[:>:]]" % word
 
 
-query_syntax_chars = re.compile(r"[\\/*:(){}]")
+query_syntax_chars = re.compile(r"[\\/*:(){}?.]")
 
 
 def remove_query_syntax_chars(query, replace=' '):
 
 
 def remove_query_syntax_chars(query, replace=' '):