Skip to content

fix: change removeEmoji regex to include custom emojis #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 8, 2023

Conversation

dilaouid
Copy link
Contributor

@dilaouid dilaouid commented Sep 7, 2023

(Just tried something after a bit of documentation)
I replaced the original regular expression to delete the emojis (/(\p{Extended_Pictographic}|\p{Emoji_Component})/gu), since it doesn't catches the custom emojis which are formatted as such <:emoji_name:emoji_id>

As shown in some requests, the custom emojis are really formatted as such:
image

Copy link
Contributor

@potb potb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mind doing some basic tests so that we are sure we match appropriate messages ?

@dilaouid dilaouid changed the title Change emoji regex to include custom emojis feat: Change emoji regex to include custom emojis Sep 7, 2023
@dilaouid dilaouid changed the title feat: Change emoji regex to include custom emojis fix: change removeEmoji regex to include custom emojis Sep 7, 2023
Copy link
Member

@neolectron neolectron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niceee, well done!

@neolectron neolectron merged commit 7713504 into codinglab-io:master Sep 8, 2023
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.

3 participants