Update emoji-data

exclude-unsupported-native-emojis
Etienne Lemay 2016-06-08 21:30:41 -04:00
parent f8165922b5
commit ba2f76b24f
2 changed files with 2 additions and 10 deletions

View File

@ -27,7 +27,7 @@
"babel-loader": "6.2.4",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"emoji-data": "git://github.com/missive/emoji-data.git#01aeccb3adf6cdfaab6e13892f7688740047ff32",
"emoji-data": "git://github.com/iamcal/emoji-data.git#6daffc10d8e8fd06b80ec24c9bdcb65218f71563",
"inflection": "1.10.0",
"lunr": "0.7.1",
"mkdirp": "0.5.1",

View File

@ -24,14 +24,6 @@ emojiData.forEach((datum) => {
shortName = datum.short_name,
categoryIndex
if (!category) {
if (/^skin/.test(shortName)) category = 'Skins'
if (/^flag/.test(shortName)) category = 'Flags'
if (/^(left_speech_bubble|keycap_star|eject)$/.test(shortName)) category = 'Symbols'
datum.category = category
}
if (!datum.category) {
throw new Error('“' + datum.short_name + '” doesnt have a category')
}
@ -43,7 +35,7 @@ emojiData.forEach((datum) => {
throw new Error('“' + datum.short_name + '” doesnt have a name')
}
if (datum.category == 'Skins') {
if (datum.category == 'Skin Tones') {
data.skins[datum.short_name] = datum
} else {
categoryIndex = categoriesIndex[category]