You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Fix Query Matcher regression with certain unhomoglyph'd characters like M vs m
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user