From c4f5df70ef5c3c4ca6594490e4d1f63b8303dfc1 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Fri, 22 Jul 2022 20:04:25 +1200 Subject: [PATCH] Remove emojis fix --- html/src/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html/src/app.js b/html/src/app.js index f79930f9..5b3702c3 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -18516,7 +18516,7 @@ speechSynthesis.getVoices(); $app.methods.replaceBioSymbols = function (text) { if (!text) { - return void 0; + return ''; } var symbolList = { '@': '@', @@ -18556,6 +18556,9 @@ speechSynthesis.getVoices(); }; $app.methods.removeEmojis = function (text) { + if (!text) { + return ''; + } return text .replace( /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,