Skip to content

Instantly share code, notes, and snippets.

@mattrossman
Created April 12, 2024 18:39
Show Gist options
  • Save mattrossman/b828006b684115a259b7900892efb8e7 to your computer and use it in GitHub Desktop.
Save mattrossman/b828006b684115a259b7900892efb8e7 to your computer and use it in GitHub Desktop.
Remove Emoji
export function removeEmoji(text: string) {
return text.replaceAll(/\p{Emoji_Presentation}/gu, "");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment