From 8092fba2904332ed6e718ba47e3b7684b7edb4f9 Mon Sep 17 00:00:00 2001 From: "Stephen M. Coakley" Date: Thu, 27 Apr 2017 12:01:51 -0500 Subject: [PATCH] Limit search to name+description --- pkg/omf/functions/index/omf.index.query.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/omf/functions/index/omf.index.query.fish b/pkg/omf/functions/index/omf.index.query.fish index 2ab20c3d..9c04d888 100644 --- a/pkg/omf/functions/index/omf.index.query.fish +++ b/pkg/omf/functions/index/omf.index.query.fish @@ -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; }