Query must be 3 chars minimum.

This commit is contained in:
Mario Zechner 2023-05-15 13:57:04 +02:00
parent 9afe998789
commit 0baf1e1382

View File

@ -30,6 +30,8 @@ function dom(el, html) {
}
function searchItems(query) {
if (query.length < 3) return [];
const tokens = query.split(/\s+/).map(token => token.toLowerCase());
const hits = [];