bug_x

导航

 
function filteremoji(emojireg){
  var ranges = [
    '\ud83c[\udf00-\udfff]',
    '\ud83d[\udc00-\ude4f]',
    '\ud83d[\ude80-\udeff]'
  ];
  emojiregRe = emojireg .replace(new RegExp(ranges.join('|'), 'g'), '');
  return emojiregRe;
}

  

posted on 2019-05-22 22:06  bug_x  阅读(153)  评论(0编辑  收藏  举报