Merge pull request #317 from nolanlawson/nolan/308-addendum

fix: consistently return short_names from sanitize
nolan/issue-325
Etienne Lemay 2019-03-28 07:37:39 -04:00 committed by GitHub
commit cbad12426c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

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