Fix search highlighting with multiple words.

This commit is contained in:
Eric Huss 2021-01-04 14:20:36 -08:00
parent 33d3d9c3ec
commit 28387130c0
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ window.search = window.search || {};
} }
if (url.params.hasOwnProperty(URL_MARK_PARAM)) { 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, { marker.mark(words, {
exclude: mark_exclude exclude: mark_exclude
}); });