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

View File

@ -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(),