Skip to content

refactor(core): replace unicode-emoji-json with native RGI_Emoji regex - #1100

Open
0x5267 wants to merge 2 commits into
citizenfx:masterfrom
0x5267:refactor/native-emoji-regex
Open

refactor(core): replace unicode-emoji-json with native RGI_Emoji regex#1100
0x5267 wants to merge 2 commits into
citizenfx:masterfrom
0x5267:refactor/native-emoji-regex

Conversation

@0x5267

@0x5267 0x5267 commented Mar 12, 2026

Copy link
Copy Markdown

Completes a TODO from dev-notes.md under "After Node 22" - use /^\p{RGI_Emoji}$/v to detect emojis and remove
unicode-emoji-json from dependencies.

@0x5267
0x5267 requested a review from tabarra as a code owner March 12, 2026 19:15
@0x5267
0x5267 marked this pull request as draft March 12, 2026 19:15
Use the native /\p{RGI_Emoji}/v regex available since Node 20+ instead
of the manual codepoint ranges in cleanPlayerName and the unicode-emoji-json
library in discordHelpers. This removes a dependency while improving emoji
detection accuracy.
@0x5267
0x5267 force-pushed the refactor/native-emoji-regex branch from ab43970 to 9598273 Compare March 12, 2026 19:17
@0x5267
0x5267 marked this pull request as ready for review March 12, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant