From: Jan Szejko Date: Tue, 27 Feb 2018 12:46:08 +0000 (+0100) Subject: remove even more query chars X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/4d1a89705323ca36b455526153763ebf3a783866 remove even more query chars --- 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=' '):