fix: consistently return short_names from sanitize

release
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', id: 'pineapple',
name: 'Pineapple', name: 'Pineapple',
short_names: ['pineapple'],
colons: ':pineapple:', colons: ':pineapple:',
emoticons: [], emoticons: [],
unified: '1f34d', unified: '1f34d',

View File

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