Skip to content

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

Open
Syxless wants to merge 1 commit into
citizenfx:masterfrom
Syxless:refactor/native-emoji-regex
Open

refactor(core): replace unicode-emoji-json with native RGI_Emoji regex#1100
Syxless wants to merge 1 commit into
citizenfx:masterfrom
Syxless:refactor/native-emoji-regex

Conversation

@Syxless
Copy link
Copy Markdown

@Syxless Syxless commented Mar 12, 2026

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.

@Syxless Syxless requested a review from tabarra as a code owner March 12, 2026 19:15
@Syxless Syxless 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.
@Syxless Syxless force-pushed the refactor/native-emoji-regex branch from ab43970 to 9598273 Compare March 12, 2026 19:17
@Syxless Syxless 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