mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
[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:
@@ -223,6 +223,12 @@ namespace Wox.Infrastructure
|
||||
}
|
||||
}
|
||||
|
||||
if (String.Equals(query, stringToCompare, StringComparison.CurrentCultureIgnoreCase))
|
||||
{
|
||||
var bonusForExactMatch = 10;
|
||||
score += bonusForExactMatch;
|
||||
}
|
||||
|
||||
return score;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user