vtils
Version:
一个面向业务的 JavaScript/TypeScript 实用程序库。
18 lines (16 loc) • 406 B
JavaScript
exports.__esModule = true;
exports.removeEmojiChars = removeEmojiChars;
var _regexp = require("../regexp");
var regExp = _regexp.emojiRegExpBuilder.build({
global: true
});
/**
* 从字符串中移除 emoji 字符。
*
* @param value 要操作的字符串
* @returns 返回移除 emoji 字符后的字符串
*/
function removeEmojiChars(value) {
return value.replace(regExp, '');
}
;