mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
built-in limit filter
This commit is contained in:
parent
0dab74c0bb
commit
a763028fa7
@ -3015,11 +3015,16 @@ class SongSelect{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(query){
|
if(query){
|
||||||
results = fuzzysort.go(query, results, {keys: ["titlePrepared", "subtitlePrepared"], allowTypo: true})
|
results = fuzzysort.go(query, results, {
|
||||||
.map(result => result.obj)
|
keys: ["titlePrepared", "subtitlePrepared"],
|
||||||
|
allowTypo: true,
|
||||||
|
limit: 100
|
||||||
|
}).map(result => result.obj)
|
||||||
|
}else{
|
||||||
|
results = results.slice(0, 100)
|
||||||
}
|
}
|
||||||
|
|
||||||
return results.slice(0, 100)
|
return results
|
||||||
}
|
}
|
||||||
|
|
||||||
searchInput(){
|
searchInput(){
|
||||||
|
Loading…
Reference in New Issue
Block a user