Fix terms check

This commit is contained in:
Adam Turner 2022-04-18 23:10:43 +01:00
parent 068f802df9
commit 2b42752219

View File

@ -132,7 +132,7 @@ const Documentation = {
highlightSearchWords: () => {
const highlight =
new URLSearchParams(window.location.search).get("highlight") || "";
const terms = highlight.toLowerCase().split(/\s+/);
const terms = highlight.toLowerCase().split(/\s+/).filter(x => x);
if (terms.length === 0) return; // nothing to do
// There should never be more than one element matching "div.body"