mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-22 22:50:03 +01:00
whitespace stylecop fixes for Wox.Infra (#5689)
* Limited to whitespace * removing stylecop again
This commit is contained in:
@@ -9,6 +9,7 @@ using System.Runtime.CompilerServices;
|
||||
using static Wox.Infrastructure.StringMatcher;
|
||||
|
||||
[assembly: InternalsVisibleToAttribute("Microsoft.Plugin.Program.UnitTests")]
|
||||
|
||||
namespace Wox.Infrastructure
|
||||
{
|
||||
public class StringMatcher
|
||||
@@ -225,7 +226,7 @@ namespace Wox.Infrastructure
|
||||
private static int CalculateSearchScore(string query, string stringToCompare, int firstIndex, int matchLen, bool allSubstringsContainedInCompareString)
|
||||
{
|
||||
// A match found near the beginning of a string is scored more than a match found near the end
|
||||
// A match is scored more if the characters in the patterns are closer to each other,
|
||||
// A match is scored more if the characters in the patterns are closer to each other,
|
||||
// while the score is lower if they are more spread out
|
||||
var score = 100 * (query.Length + 1) / ((1 + firstIndex) + (matchLen + 1));
|
||||
|
||||
@@ -301,6 +302,7 @@ namespace Wox.Infrastructure
|
||||
public int RawScore
|
||||
{
|
||||
get { return _rawScore; }
|
||||
|
||||
set
|
||||
{
|
||||
_rawScore = value;
|
||||
|
||||
Reference in New Issue
Block a user