Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad892c1

Browse files
feature #48396 [Intl] Add a special locale to strip emojis easily with EmojiTransliterator (fancyweb)
This PR was merged into the 6.3 branch. Discussion ---------- [Intl] Add a special locale to strip emojis easily with `EmojiTransliterator` | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - I'd like to add a special locale `strip` to the emoji transliterator to easily remove all emojis from a string. It would only work with valid input/emojis. Removing emojis from a string is not easy. Regexes are complicated and most of the time not up-to-date with the latest Unicode versions. I thought we could leverage the new transliterator 😄 Commits ------- b8254be [Intl] Add a special locale to strip emojis easily with EmojiTransliterator
2 parents dfcb811 + b8254be commit ad892c1

File tree

4 files changed

+4773
-1
lines changed

4 files changed

+4773
-1
lines changed

src/Symfony/Component/Intl/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.3
5+
---
6+
7+
* Add the special `strip` locale to `EmojiTransliterator` to strip all emojis from a string
8+
49
6.2
510
---
611

0 commit comments

Comments
 (0)