Fix case-insensitive typeahead for emoji.

This commit is contained in:
Tim Abbott 2016-04-26 13:14:07 -07:00
parent abacd9b2da
commit f5fe2d4bf7

View File

@ -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.