|
@@ -42,7 +42,7 @@ static FuzzyMatchResult fuzzy_match_recursive(String const& needle, String const
|
|
bool first_match = true;
|
|
bool first_match = true;
|
|
while (needle_idx < needle.length() && haystack_idx < haystack.length()) {
|
|
while (needle_idx < needle.length() && haystack_idx < haystack.length()) {
|
|
|
|
|
|
- if (needle.substring_view(needle_idx, 1).equals_ignoring_case(haystack.substring_view(haystack_idx, 1))) {
|
|
|
|
|
|
+ if (to_ascii_lowercase(needle[needle_idx]) == to_ascii_lowercase(haystack[haystack_idx])) {
|
|
if (next_match >= MAX_MATCHES)
|
|
if (next_match >= MAX_MATCHES)
|
|
return { false, out_score };
|
|
return { false, out_score };
|
|
|
|
|