Skip to content
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

Can't remove emojis: 0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣ #179

Open
hiep18101997 opened this issue Apr 28, 2021 · 5 comments

Comments

@hiep18101997
Copy link

Can't remove emojis: 0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣

@hiep18101997
Copy link
Author

I tried using the function EmojiParser.removeAllEmojis() but it failed to remove some emoji. Ex: 0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣

@hiep18101997
Copy link
Author

I handled this case with function:

9️⃣ toCharArray = 9 ()+ '️'(0xFE0F) + '⃣'(0x20E3)

    private fun isSpecialEmoji(source: String, index: Int): Boolean {
        return index + 2 <= source.length && source[index + 1] == '️' && source[index + 2] == '⃣'
    }

@aserrallerios
Copy link

aserrallerios commented Jul 2, 2021

This library detects digit + u20E3 but it doesn't detect digit + uFE0F + u20E3.

@baszero
Copy link

baszero commented Dec 22, 2021

I can also confirm that even the latest version 5.1.1. does NOT remove the emojis 0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣ , when is bugfix coming?

@baszero
Copy link

baszero commented Dec 22, 2021

Actually, I just found out that these characters are not real Emojis, so it's ok that they don't get removed.

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

No branches or pull requests

3 participants