Skip to content

Commit

Permalink
Fix case-insensitive typeahead for emoji.
Browse files Browse the repository at this point in the history
  • Loading branch information
timabbott committed Apr 26, 2016
1 parent abacd9b commit f5fe2d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/js/composebox_typeahead.js
Expand Up @@ -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.
Expand Down

0 comments on commit f5fe2d4

Please sign in to comment.