From fa7141653df9bcc80f7858d8b78fe98c7cbe1bb0 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 22 Mar 2019 15:59:55 -0700 Subject: [PATCH] fix: consistently return short_names from sanitize --- src/utils/emoji-index/__tests__/emoji-index.test.js | 1 + src/utils/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/utils/emoji-index/__tests__/emoji-index.test.js b/src/utils/emoji-index/__tests__/emoji-index.test.js index 24ac794..a3e191e 100644 --- a/src/utils/emoji-index/__tests__/emoji-index.test.js +++ b/src/utils/emoji-index/__tests__/emoji-index.test.js @@ -5,6 +5,7 @@ test('should work', () => { { id: 'pineapple', name: 'Pineapple', + short_names: ['pineapple'], colons: ':pineapple:', emoticons: [], unified: '1f34d', diff --git a/src/utils/index.js b/src/utils/index.js index 895b98e..2243796 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -46,6 +46,7 @@ function sanitize(emoji) { return { id, name, + short_names, colons, emoticons, unified: unified.toLowerCase(),