This commit is contained in:
Daniel 2025-07-26 16:50:46 +08:00
parent 7476372054
commit 9d392bd663
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -343,7 +343,9 @@ func SearchAssetsByName(keyword string, exts []string) (ret []*cache.Asset) {
ret = []*cache.Asset{}
var keywords []string
keywords = append(keywords, keyword)
keywords = append(keywords, strings.Split(keyword, " ")...)
if "" != keyword {
keywords = append(keywords, strings.Split(keyword, " ")...)
}
pathHitCount := map[string]int{}
filterByExt := 0 < len(exts)
for _, asset := range cache.GetAssets() {