fix(query): fix package indexing on narrow search

This commit is contained in:
jguer
2020-06-15 08:50:06 +02:00
parent 35a7d504fa
commit 1970dfa71b

View File

@@ -174,7 +174,7 @@ func narrowSearch(pkgS []string, sortS bool) (aurQuery, error) {
continue
}
if !(strings.Contains(r[j].Name, pkgN) || strings.Contains(strings.ToLower(r[j].Description), pkgN)) {
if !(strings.Contains(r[i].Name, pkgN) || strings.Contains(strings.ToLower(r[i].Description), pkgN)) {
match = false
break
}