calculate score for addtional info

This commit is contained in:
bao-qian
2017-01-12 20:50:12 +00:00
parent 767aaa80a0
commit 870ad008bf
2 changed files with 12 additions and 9 deletions

View File

@@ -229,7 +229,8 @@ namespace Wox.Plugin.Program.Programs
var score1 = StringMatcher.Score(DisplayName, query);
var score2 = StringMatcher.ScoreForPinyin(DisplayName, query);
var score3 = StringMatcher.Score(Description, query);
var score = new[] { score1, score2, score3 }.Max();
var score4= StringMatcher.ScoreForPinyin(Description, query);
var score = new[] { score1, score2, score3, score4 }.Max();
return score;
}