Skip to content

Commit

Permalink
feat: allow lookup by 'unified' in ngx-emoji (#175)
Browse files Browse the repository at this point in the history
closes #173
  • Loading branch information
s-moran authored and scttcper committed Nov 15, 2018
1 parent 79c1cd8 commit 1c516db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/emoji/emoji.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1c516db

Please sign in to comment.