Created
October 31, 2016 05:44
-
-
Save blackcater/ec6b4308863b7ee6965d175a71109920 to your computer and use it in GitHub Desktop.
过滤emoji
This file contains 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
function filterEmoji(str) { | |
return str.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g, "") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment