mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 03:37:10 +08:00
fix #256
This commit is contained in:
parent
a0b7768a86
commit
4d3df4cda6
@ -32,6 +32,8 @@ namespace Wox.Infrastructure
|
||||
|
||||
public MatchResult Evaluate(string str)
|
||||
{
|
||||
if (string.IsNullOrEmpty(str) || string.IsNullOrEmpty(query)) return new MatchResult() { Success = false };
|
||||
|
||||
var len = str.Length;
|
||||
var compareString = opt.IgnoreCase ? str.ToLower() : str;
|
||||
var pattern = opt.IgnoreCase ? query.ToLower() : query;
|
||||
|
Loading…
Reference in New Issue
Block a user