Skip to content

Commit 58b717c

Browse files
committed
Update summary
1 parent f3479f6 commit 58b717c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Flow.Launcher.Infrastructure/StringMatcher.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,20 @@ public MatchResult FuzzyMatch(string query, string stringToCompare)
3131
}
3232

3333
/// <summary>
34-
/// Current method:
34+
/// Current method includes two part, Acronym Match and Fuzzy Search:
35+
///
36+
/// Acronym Match:
37+
/// Charater lists below will be considered as Acronym
38+
/// 1. Character on index 0
39+
/// 2. Character appears after a space
40+
/// 3. Character that is UpperCase
41+
/// 4. Character that is number
42+
///
43+
/// Acronym Search will match all query when meeting with Acronyms in the stringToCompare
44+
/// If any of the character in Query isn't matched with the string, Acronym Search fail.
45+
/// Score will be calculated based on the number of mismatched acronym before all query has been matched
46+
///
47+
/// Fuzzy Search:
3548
/// Character matching + substring matching;
3649
/// 1. Query search string is split into substrings, separator is whitespace.
3750
/// 2. Check each query substring's characters against full compare string,

0 commit comments

Comments
 (0)