mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
Fix caps in search leading to no results
This commit is contained in:
6
query.go
6
query.go
@@ -136,7 +136,11 @@ func narrowSearch(ctx context.Context, aurClient *aur.Client, pkgS []string, sor
|
||||
continue
|
||||
}
|
||||
|
||||
if !(strings.Contains(r[i].Name, pkgN) || strings.Contains(strings.ToLower(r[i].Description), pkgN)) {
|
||||
name := strings.ToLower(r[i].Name)
|
||||
desc := strings.ToLower(r[i].Description)
|
||||
targ := strings.ToLower(pkgN)
|
||||
|
||||
if !(strings.Contains(name, targ) || strings.Contains(desc, targ)) {
|
||||
match = false
|
||||
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user