Commit 98374752 by 无尘

fix: 修改工作台

parent c7cbac1a
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-12-05 09:56:10
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 15:36:11
* @LastEditTime: 2020-10-22 17:07:44
*/
/**
......@@ -117,6 +117,9 @@ export function formatNum(num) {
*/
// eslint-disable-next-line
export function emojiToStr(str) {
str = str.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g, '');
if (!String(str) || String(str) == 'null') {
return '';
}
str = String(str).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g, '');
return unescape(escape(str).replace(/\%uD.{3}/g, ''));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment