Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix Query Matcher regression with certain unhomoglyph'd characters #5050

Merged
merged 1 commit into from
Jul 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/autocomplete/QueryMatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ export default class QueryMatcher<T extends Object> {

private processQuery(query: string): string {
if (this._options.fuzzy !== false) {
return removeHiddenChars(query).toLowerCase();
// lower case both the input and the output for consistency
return removeHiddenChars(query.toLowerCase()).toLowerCase();
}
return query.toLowerCase();
}
Expand Down