-
Notifications
You must be signed in to change notification settings - Fork 4
AGI-1181: Add Strings::stripEmoji #26
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
Conversation
src/Filter/Strings.php
Outdated
* | ||
* @return string; | ||
*/ | ||
public static function stripEmoji(string $value, string $replacement = '') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing return typehint
Co-authored-by: philbti <[email protected]>
*/ | ||
public static function provideStripEmoji(): array | ||
{ | ||
return [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we do sanity checks if it strips multiple emojis properly in a message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i can add that
Co-authored-by: philbti <[email protected]>
What does this PR do?
This pull request adds the
Strings::stripEmoji
method which will strip emoji characters from a given string.Checklist