Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Lower-case query in sort_emojis more consistently.
Greg Price0f6483449ff0
diff --git a/static/shared/js/typeahead.js b/static/shared/js/typeahead.jsindex 2c1fcb81636..f3dfe12d76a 100644--- a/static/shared/js/typeahead.js+++ b/static/shared/js/typeahead.js@@ -131,11 +131,11 @@ export function triage(query, objs, get_item = (x) => x) {}export function sort_emojis(objs, query) {- const lowerQuery = query.toLowerCase();+ query = query.toLowerCase();function decent_match(name) {const pieces = name.toLowerCase().split("_");- return pieces.some((piece) => piece.startsWith(lowerQuery));+ return pieces.some((piece) => piece.startsWith(query));}const popular_set = new Set(popular_emojis);