[launcher] - Increase the score for Exact matches in the Name of the Application (#3213)

* Increase score for exact matches in the name

* Added tests for exact matching

* Used TestCase

* variable for bonus score

* Removed comment, variable is self explanatory
This commit is contained in:
Alekhya
2020-05-19 16:10:40 -07:00
committed by GitHub
parent 2e8602eb43
commit f07d37ce0d
2 changed files with 21 additions and 12 deletions

View File

@@ -223,6 +223,12 @@ namespace Wox.Infrastructure
}
}
if (String.Equals(query, stringToCompare, StringComparison.CurrentCultureIgnoreCase))
{
var bonusForExactMatch = 10;
score += bonusForExactMatch;
}
return score;
}