mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-16 05:34:21 +02:00
Query must be 3 chars minimum.
This commit is contained in:
parent
9afe998789
commit
0baf1e1382
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue
Block a user