From 1c516dbd4bcab5f9ead297675a5c4b6bcd5fabcd Mon Sep 17 00:00:00 2001 From: s-moran Date: Thu, 15 Nov 2018 12:25:48 -0500 Subject: [PATCH] feat: allow lookup by 'unified' in ngx-emoji (#175) closes #173 --- src/lib/emoji/emoji.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/emoji/emoji.service.ts b/src/lib/emoji/emoji.service.ts index 7dad1d74..f5a9ba48 100644 --- a/src/lib/emoji/emoji.service.ts +++ b/src/lib/emoji/emoji.service.ts @@ -102,6 +102,8 @@ export class EmojiService { } } else if (emoji.id) { emojiData = this.names[emoji.id]; + } else if (emoji.unified) { + emojiData = this.names[emoji.unified.toUpperCase()]; } if (!emojiData) {