Fix Query Matcher regression with certain unhomoglyph'd characters like `M` vs `m`

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-07-27 12:08:51 +01:00
parent 57a5b47aa4
commit 94acc02b25
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,8 @@ export default class QueryMatcher<T extends Object> {
private processQuery(query: string): string { private processQuery(query: string): string {
if (this._options.fuzzy !== false) { 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(); return query.toLowerCase();
} }