This commit is contained in:
qianlifeng 2015-02-27 09:28:07 +08:00
parent a0b7768a86
commit 4d3df4cda6

View File

@ -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;