Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Treat query and source string in the same way before matching.
N-Shar-ma5d83e53ca5d3
diff --git a/web/shared/src/typeahead.ts b/web/shared/src/typeahead.tsindex 3d293c57748..8b7661bf729 100644--- a/web/shared/src/typeahead.ts+++ b/web/shared/src/typeahead.ts@@ -62,6 +62,9 @@ export function query_matches_string(source_str = source_str.toLowerCase();source_str = remove_diacritics(source_str);+ query = query.toLowerCase();+ query = remove_diacritics(query);+if (!query.includes(split_char)) {// If query is a single token (doesn't contain a separator),// the match can be anywhere in the string.