fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c56dfc1
)
remove even more query chars
author
Jan Szejko
<janek37@gmail.com>
Tue, 27 Feb 2018 12:46:08 +0000
(13:46 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 27 Feb 2018 14:43:41 +0000
(15:43 +0100)
src/search/views.py
patch
|
blob
|
history
diff --git
a/src/search/views.py
b/src/search/views.py
index
9be6732
..
e6efc21
100644
(file)
--- 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=' '):