built-in limit filter
This commit is contained in:
@@ -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(){
|
||||||
|
|||||||
Reference in New Issue
Block a user