diff --git a/Wox.Infrastructure/FuzzyMatcher.cs b/Wox.Infrastructure/FuzzyMatcher.cs index 461f20ed56..ddd26be832 100644 --- a/Wox.Infrastructure/FuzzyMatcher.cs +++ b/Wox.Infrastructure/FuzzyMatcher.cs @@ -16,7 +16,7 @@ namespace Wox.Infrastructure public static FuzzyMatcher Create(string query) { - return new FuzzyMatcher(query, StringMatcher.EmptyMatchOption); + return new FuzzyMatcher(query, StringMatcher.DefaultMatchOption); } public static FuzzyMatcher Create(string query, MatchOption opt) diff --git a/Wox.Infrastructure/StringMatcher.cs b/Wox.Infrastructure/StringMatcher.cs index ec1df0f03a..9c49b4119b 100644 --- a/Wox.Infrastructure/StringMatcher.cs +++ b/Wox.Infrastructure/StringMatcher.cs @@ -8,7 +8,7 @@ namespace Wox.Infrastructure { public static class StringMatcher { - public static MatchOption EmptyMatchOption = new MatchOption(); + public static MatchOption DefaultMatchOption = new MatchOption(); public static string UserSettingSearchPrecision { get; set; } @@ -17,7 +17,7 @@ namespace Wox.Infrastructure { if (!string.IsNullOrEmpty(source) && !string.IsNullOrEmpty(target)) { - return FuzzySearch(target, source, EmptyMatchOption).Score; + return FuzzySearch(target, source, DefaultMatchOption).Score; } else { @@ -28,12 +28,12 @@ namespace Wox.Infrastructure [Obsolete("This method is obsolete and should not be used. Please use the static function StringMatcher.FuzzySearch")] public static bool IsMatch(string source, string target) { - return FuzzySearch(target, source, EmptyMatchOption).Score > 0; + return FuzzySearch(target, source, DefaultMatchOption).Score > 0; } public static MatchResult FuzzySearch(string query, string stringToCompare) { - return FuzzySearch(query, stringToCompare, EmptyMatchOption); + return FuzzySearch(query, stringToCompare, DefaultMatchOption); } ///