Exclude flag-un from data
I have yet to find a browser that supports itnolan/hinaloe-test
parent
274d8b3862
commit
88cde669e6
|
@ -134,7 +134,11 @@ emojiData.forEach((datum) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
var flags = data.categories[categoriesIndex['Flags']]
|
var flags = data.categories[categoriesIndex['Flags']]
|
||||||
flags.emojis.sort()
|
flags.emojis = flags.emojis.filter((flag) => {
|
||||||
|
// Until browsers support Flag UN
|
||||||
|
if (flag == 'flag-un') return
|
||||||
|
return true
|
||||||
|
}).sort()
|
||||||
|
|
||||||
const stringified = JSON.stringify(data).replace(/\"([A-Za-z_]+)\":/g, '$1:')
|
const stringified = JSON.stringify(data).replace(/\"([A-Za-z_]+)\":/g, '$1:')
|
||||||
fs.writeFile('dist/data/data.js', `module.exports = ${stringified}`, (err) => {
|
fs.writeFile('dist/data/data.js', `module.exports = ${stringified}`, (err) => {
|
||||||
|
|
Loading…
Reference in New Issue