Skip to content

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

Merged
merged 4 commits into from
Mar 10, 2025

Conversation

chadicus
Copy link
Contributor

What does this PR do?

This pull request adds the Strings::stripEmoji method which will strip emoji characters from a given string.

Checklist

  • Pull request contains a clear definition of changes
  • Tests (either unit, integration, or acceptance) written and passing
  • Relevant documentation produced and/or updated

@chadicus chadicus requested a review from a team as a code owner March 10, 2025 17:37
*
* @return string;
*/
public static function stripEmoji(string $value, string $replacement = '')
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing return typehint

*/
public static function provideStripEmoji(): array
{
return [
Copy link
Contributor

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?

Copy link
Contributor Author

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

@chadicus chadicus merged commit 0703ed3 into traderinteractive:master Mar 10, 2025
6 checks passed
@chadicus chadicus deleted the strip-emoji branch March 10, 2025 18:49
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.

2 participants