From 5040f09f0c149db2be2210241cec10c0aede2f56 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Mon, 6 Jan 2020 21:38:07 +1100 Subject: [PATCH] Update method summary only --- Wox.Infrastructure/StringMatcher.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Wox.Infrastructure/StringMatcher.cs b/Wox.Infrastructure/StringMatcher.cs index 902490e2a..cfdb0880a 100644 --- a/Wox.Infrastructure/StringMatcher.cs +++ b/Wox.Infrastructure/StringMatcher.cs @@ -41,13 +41,15 @@ namespace Wox.Infrastructure } /// - /// Current method: + /// Current method: /// Character matching + substring matching; - /// 1. Check query substring's character against full compare string, - /// 2. if matched, loop back to verify the previous character. - /// 3. If previous character also matches, and is the start of the substring, update list. - /// 4. Once the previous character is verified, move on to the next character in the query substring. - /// 5. Consider success and move onto scoring if every char or substring without whitespaces matched + /// 1. Query search string is split into substrings, separator is whitespace. + /// 2. Check each query substring's characters against full compare string, + /// 3. if a character in the substring is matched, loop back to verify the previous character. + /// 4. If previous character also matches, and is the start of the substring, update list. + /// 5. Once the previous character is verified, move on to the next character in the query substring. + /// 6. Move onto the next substring's characters until all substrings are checked. + /// 7. Consider success and move onto scoring if every char or substring without whitespaces matched /// public static MatchResult FuzzySearch(string query, string stringToCompare, MatchOption opt) {