[cleanup]

exclude-unsupported-native-emojis
Etienne Lemay 2016-07-07 13:35:22 -04:00
parent 29b5985f80
commit 0befb30dc8
1 changed files with 9 additions and 9 deletions

View File

@ -1,11 +1,11 @@
var fs = require('fs') var fs = require('fs'),
var emojiData = require('emoji-data') emojiData = require('emoji-data'),
var inflection = require('inflection') inflection = require('inflection'),
var mkdirp = require('mkdirp') mkdirp = require('mkdirp')
var categories = ['People', 'Nature', 'Foods', 'Activity', 'Places', 'Objects', 'Symbols', 'Flags'] var categories = ['People', 'Nature', 'Foods', 'Activity', 'Places', 'Objects', 'Symbols', 'Flags'],
var data = { categories: [], emojis: {}, skins: {} } data = { categories: [], emojis: {}, skins: {} },
var categoriesIndex = {} categoriesIndex = {}
categories.forEach((category, i) => { categories.forEach((category, i) => {
data.categories[i] = { name: category, emojis: [] } data.categories[i] = { name: category, emojis: [] }
@ -13,8 +13,8 @@ categories.forEach((category, i) => {
}) })
emojiData.sort((a, b) => { emojiData.sort((a, b) => {
var aTest = a.sort_order || a.short_name var aTest = a.sort_order || a.short_name,
var bTest = b.sort_order || b.short_name bTest = b.sort_order || b.short_name
return aTest - bTest return aTest - bTest
}) })