diff --git a/scripts/build-data.js b/scripts/build-data.js index 20330a5..dd9da0a 100644 --- a/scripts/build-data.js +++ b/scripts/build-data.js @@ -134,7 +134,11 @@ emojiData.forEach((datum) => { }) 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:') fs.writeFile('dist/data/data.js', `module.exports = ${stringified}`, (err) => {