mirror of
https://github.com/zulip/zulip.git
synced 2026-06-21 21:32:29 +08:00
Fix case-insensitive typeahead for emoji.
This commit is contained in:
parent
abacd9b2da
commit
f5fe2d4bf7
@ -72,8 +72,9 @@ function query_matches_person(query, person) {
|
||||
|
||||
}
|
||||
|
||||
// Case-insensitive
|
||||
function query_matches_emoji(query, emoji) {
|
||||
return (emoji.emoji_name.indexOf(query.toLowerCase()) !== -1);
|
||||
return (emoji.emoji_name.toLowerCase().indexOf(query.toLowerCase()) !== -1);
|
||||
}
|
||||
|
||||
// nextFocus is set on a keydown event to indicate where we should focus on keyup.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user