Merge pull request #505 from oh-my-fish/fix/search-only-desc

Limit search to name+description
This commit is contained in:
Stephen M. Coakley 2017-04-30 00:27:10 -05:00 committed by GitHub
commit 751ca97a28

View File

@ -73,7 +73,7 @@ function omf.index.query -d 'Query packages in the index'
type_matches = 1;
}
!text_matches && !/^#/ {
!text_matches && !/^#/ && $1 == "description" {
if (match(tolower($2), q_text)) {
text_matches = 1;
}