aboutsummaryrefslogtreecommitdiff
path: root/templates/searchresults.html
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-09-07 22:14:32 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-09-07 22:14:32 +0200
commitf8ae6710e870fd7a2f4210b85ec0d509fe350e28 (patch)
treef90b56d7d17a16c6544d427c0c71ce6cbc9598fe /templates/searchresults.html
parent6666730fa01effdedd62ee4b65abe088e29a0ff8 (diff)
downloadreploy-f8ae6710e870fd7a2f4210b85ec0d509fe350e28.tar.gz
reploy-f8ae6710e870fd7a2f4210b85ec0d509fe350e28.tar.bz2
use unicode-aware tokenizer separator
Diffstat (limited to 'templates/searchresults.html')
-rw-r--r--templates/searchresults.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/searchresults.html b/templates/searchresults.html
index 5044d0b..5ced869 100644
--- a/templates/searchresults.html
+++ b/templates/searchresults.html
@@ -31,6 +31,7 @@
<script src="{{root}}static/lunr.min.js"></script>
<script>
+ lunr.QueryLexer.termSeparator = /(\p{P}|\p{S}|\p{Z}|\p{C})+/u;
var el_query = document.getElementById('search_query');
var el_placeholder = document.getElementById('search_placeholder');
var el_noquery = document.getElementById('search_noquery');