Created
November 6, 2019 22:47
-
-
Save manuelbieh/a7161dbc92c3a3f6d261342b5d4aff98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const removeEmoji = (str) => str.replace( | |
/([\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF])|\ud83c[\udde6-\uddff]\ud83c[\udde6-\uddff]|\xF0\x9F\xA6\x84/g, | |
'' | |
) | |
.replace(/\xF0|\x9F|\x98|\x8D|\xF0|\x9F/g, ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment