-
Notifications
You must be signed in to change notification settings - Fork 11
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
This emoji is not deleted #6
Comments
Those codes are present in the regex string from the emoji-regex dependency (https://github.com/mathiasbynens/emoji-regex/blob/master/index.js), so I'm not sure why they aren't getting stripped out. A remove all non-ascii characters regex works as a workaround for me:
|
It might be a question of updating the dependencies to get the latest version of |
I tried updating the dependencies, but it didn't change anything for me.
Good luck and hope you can get it.
Cheers,Jordan RejaudSoftware Engineer and ConsultantSan Francisco, CAM.S.
Carnegie Mellon [email protected]
On Wed, Feb 14, 2018 11:27 AM, Nizar Khalife Iglesias [email protected] wrote:
It might be a question of updating the dependencies to get the latest version of
emoji-regex. I'll take a closer look this weekend.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ditto, 🥳, is not removed either. |
I am not proud of this, but it works... var emojiStrip = require('emoji-strip')
function strimEmojis(string) {
return emojiStrip(string).replace(/([\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g, '');
} |
Hello everyone!
I am using your library but I have an issue:
test\u26A1**\uFE0F** (test⚡️)
This emoji is not deleted.
When I stip the string I get this: test**\uFE0F**
Could you help me?
The text was updated successfully, but these errors were encountered: