aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/main/resources/dokka/scripts/search.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/src/main/resources/dokka/scripts/search.js b/core/src/main/resources/dokka/scripts/search.js
index 63112ac5..04d88ab5 100644
--- a/core/src/main/resources/dokka/scripts/search.js
+++ b/core/src/main/resources/dokka/scripts/search.js
@@ -1,5 +1,7 @@
-var query = new URLSearchParams(window.location.search).get("query");
- document.getElementById("searchTitle").innerHTML += '"' + query + '":';
- document.getElementById("searchTable").innerHTML = pages.filter(el => el.name.startsWith(query)).reduce((acc, element) => { return acc +
- '<tr><td><a href="' + element.location + '">' + element.name + '</a></td></tr>'
+let query = new URLSearchParams(window.location.search).get("query");
+document.getElementById("searchTitle").innerHTML += '"' + query + '":';
+document.getElementById("searchTable").innerHTML = pages
+ .filter(el => el.name.toLowerCase().startsWith(query.toLowerCase()))
+ .reduce((acc, element) => {
+ return acc + '<tr><td><a href="' + element.location + '">' + element.name + '</a></td></tr>'
}, ""); \ No newline at end of file