Skip to content

Instantly share code, notes, and snippets.

@blackcater
Created October 31, 2016 05:44
Show Gist options
  • Save blackcater/ec6b4308863b7ee6965d175a71109920 to your computer and use it in GitHub Desktop.
Save blackcater/ec6b4308863b7ee6965d175a71109920 to your computer and use it in GitHub Desktop.
过滤emoji
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