mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
update allSubstringsContainedInCompareString calculation as per comment
This commit is contained in:
@@ -210,7 +210,11 @@ namespace Wox.Infrastructure
|
||||
}
|
||||
|
||||
if (allSubstringsContainedInCompareString)
|
||||
score += 10 * string.Concat(query.Where(c => !char.IsWhiteSpace(c))).Count();
|
||||
{
|
||||
int count = query.Count(c => !char.IsWhiteSpace(c));
|
||||
int factor = count < 4 ? 10 : 5;
|
||||
score += factor * count;
|
||||
}
|
||||
|
||||
return score;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user