Merge pull request #88 from savardc/textVsEmoticon
Text representation of emoji is different from emoticonnolan/hinaloe-test
commit
48f83e001e
|
@ -90,6 +90,7 @@ Sheets are served from [unpkg](https://unpkg.com), a global CDN that serves file
|
|||
id: 'smiley',
|
||||
name: 'Smiling Face with Open Mouth',
|
||||
colons: ':smiley:',
|
||||
text: ':)',
|
||||
emoticons: [
|
||||
'=)',
|
||||
'=-)'
|
||||
|
@ -102,6 +103,7 @@ Sheets are served from [unpkg](https://unpkg.com), a global CDN that serves file
|
|||
id: 'santa',
|
||||
name: 'Father Christmas',
|
||||
colons: ':santa::skin-tone-3:',
|
||||
text: '',
|
||||
emoticons: [],
|
||||
skin: 3,
|
||||
native: '🎅🏼'
|
||||
|
@ -111,6 +113,7 @@ Sheets are served from [unpkg](https://unpkg.com), a global CDN that serves file
|
|||
id: 'octocat',
|
||||
name: 'Octocat',
|
||||
colons: ':octocat',
|
||||
text: '',
|
||||
emoticons: [],
|
||||
custom: true,
|
||||
imageUrl: 'https://assets-cdn.github.com/images/icons/emoji/octocat.png?v7'
|
||||
|
@ -150,6 +153,7 @@ const customEmojis = [
|
|||
{
|
||||
name: 'Octocat',
|
||||
short_names: ['octocat'],
|
||||
text: '',
|
||||
emoticons: [],
|
||||
keywords: ['github'],
|
||||
imageUrl: 'https://assets-cdn.github.com/images/icons/emoji/octocat.png?v7'
|
||||
|
|
|
@ -42,11 +42,7 @@ emojiData.forEach((datum) => {
|
|||
}
|
||||
|
||||
datum.emoticons = datum.texts || []
|
||||
if (datum.text && !datum.emoticons.length) {
|
||||
datum.emoticons = [datum.text]
|
||||
}
|
||||
|
||||
delete datum.text
|
||||
datum.text = datum.text || ''
|
||||
delete datum.texts
|
||||
|
||||
if (emojiLib.lib[datum.short_name]) {
|
||||
|
|
Loading…
Reference in New Issue