Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85628877
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
844 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/build/update-emoji.js b/build/update-emoji.js
index bae3af34aa..151a46cb3a 100644
--- a/build/update-emoji.js
+++ b/build/update-emoji.js
@@ -1,22 +1,22 @@
import fs from 'node:fs'
import emojis from '@kazvmoe-infra/unicode-emoji-json/data-by-group.json' with {
type: 'json',
}
Object.keys(emojis).map((k) => {
emojis[k].forEach((e) => {
delete e.unicode_version
delete e.emoji_version
delete e.skin_tone_support_unicode_version
})
})
const res = {}
Object.keys(emojis).forEach((k) => {
- const groupId = k.replace('&', 'and').replaceAll(/ /, '-').toLowerCase()
+ const groupId = k.replace('&', 'and').replaceAll(' ', '-').toLowerCase()
res[groupId] = emojis[k]
})
console.info('Updating emojis...')
fs.writeFileSync('src/assets/emoji.json', JSON.stringify(res))
console.info('Done.')
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Aug 8, 3:13 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1723639
Default Alt Text
(844 B)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment