FIX: filtered emojis now correctly include custom emojis
This commit is contained in:
parent
e36d9f55c3
commit
d5f53da43f
|
@ -188,7 +188,7 @@ export default Ember.Component.extend({
|
||||||
$list.show();
|
$list.show();
|
||||||
} else {
|
} else {
|
||||||
const regexp = new RegExp(this.get("filter"), "g");
|
const regexp = new RegExp(this.get("filter"), "g");
|
||||||
const filteredCodes = _.filter(emojis, code => regexp.test(code)).slice(0, 30);
|
const filteredCodes = _.filter(emojis.concat(_.keys(extendedEmojiList())), code => regexp.test(code)).slice(0, 30);
|
||||||
$results.empty().html(
|
$results.empty().html(
|
||||||
_.map(filteredCodes, (code) => {
|
_.map(filteredCodes, (code) => {
|
||||||
const hasDiversity = isSkinTonableEmoji(code);
|
const hasDiversity = isSkinTonableEmoji(code);
|
||||||
|
|
Loading…
Reference in New Issue