summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2021-01-04 14:20:36 -0800
committerEric Huss <eric@huss.org>2021-01-04 14:20:36 -0800
commit28387130c02e6fdaaf1ccf90bc8c3915dd5c3860 (patch)
tree3a7f04b638ed4564e72df76196ccc980e43d61b3 /src
parent33d3d9c3ec5bc33f32da1fa26c2bbc174a6bb128 (diff)
Fix search highlighting with multiple words.
Diffstat (limited to 'src')
-rw-r--r--src/theme/searcher/searcher.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theme/searcher/searcher.js b/src/theme/searcher/searcher.js
index acf3d50c..3bfdc3e4 100644
--- a/src/theme/searcher/searcher.js
+++ b/src/theme/searcher/searcher.js
@@ -296,7 +296,7 @@ window.search = window.search || {};
}
if (url.params.hasOwnProperty(URL_MARK_PARAM)) {
- var words = url.params[URL_MARK_PARAM].split(' ');
+ var words = decodeURIComponent(url.params[URL_MARK_PARAM]).split(' ');
marker.mark(words, {
exclude: mark_exclude
});