fix: consistently return short_names from sanitize
parent
8bea0331ff
commit
fa7141653d
|
@ -5,6 +5,7 @@ test('should work', () => {
|
|||
{
|
||||
id: 'pineapple',
|
||||
name: 'Pineapple',
|
||||
short_names: ['pineapple'],
|
||||
colons: ':pineapple:',
|
||||
emoticons: [],
|
||||
unified: '1f34d',
|
||||
|
|
|
@ -46,6 +46,7 @@ function sanitize(emoji) {
|
|||
return {
|
||||
id,
|
||||
name,
|
||||
short_names,
|
||||
colons,
|
||||
emoticons,
|
||||
unified: unified.toLowerCase(),
|
||||
|
|
Loading…
Reference in New Issue