Merge pull request #317 from nolanlawson/nolan/308-addendum
fix: consistently return short_names from sanitizenolan/issue-325
commit
cbad12426c
|
@ -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',
|
||||||
|
|
|
@ -47,6 +47,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