fix: consistently return short_names from sanitize
parent
8bea0331ff
commit
fa7141653d
|
@ -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',
|
||||||
|
|
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue