Telegram Web K with changes to work inside I2P
https://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
634 B
22 lines
634 B
// @ts-check |
|
const fs = require('fs'); |
|
|
|
// get emoji-test from here: https://unicode.org/Public/emoji/ |
|
const data = fs.readFileSync(__dirname + '/in/emoji-test.txt').toString(); |
|
|
|
const versions = {}; |
|
data.split('\n').forEach((line) => { |
|
const match = line.match(/^(.+?) *;.+#.+ E([\d\.]+?) /); |
|
if(!match) { |
|
return; |
|
} |
|
|
|
const codePoints = match[1].split(' ').join('-').toLowerCase(); |
|
const version = (+match[2]).toFixed(1); |
|
const obj = versions[version] ?? (versions[version] = {}); |
|
|
|
obj[codePoints] = 0; |
|
}); |
|
|
|
console.log(versions); |
|
fs.writeFileSync('./out/emoji_versions.json', JSON.stringify(versions, null, '\t'));
|
|
|