fix: consistently return short_names from sanitize

nolan/issue-325
Nolan Lawson 2019-03-22 15:59:55 -07:00
parent 8bea0331ff
commit fa7141653d
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ test('should work', () => {
{
id: 'pineapple',
name: 'Pineapple',
short_names: ['pineapple'],
colons: ':pineapple:',
emoticons: [],
unified: '1f34d',

View File

@ -46,6 +46,7 @@ function sanitize(emoji) {
return {
id,
name,
short_names,
colons,
emoticons,
unified: unified.toLowerCase(),