1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vdoc: search fix titles (#7681)

This commit is contained in:
Daniel Däschle
2020-12-29 20:01:12 +01:00
committed by GitHub
parent 27db4b4c23
commit 7bd0c5bc03
2 changed files with 7 additions and 3 deletions

View File

@@ -125,8 +125,8 @@ function setupSearch() {
var searchIndexLength = searchIndex.length;
var results = [];
for (var i = 0; i < searchIndexLength; i++) {
var title = searchIndex[i].toLowerCase();
if (title.indexOf(searchValue) === -1) {
var title = searchIndex[i];
if (title.toLowerCase().indexOf(searchValue) === -1) {
continue
}
// [badge, description, link]