mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
Remove emojis fix
This commit is contained in:
+4
-1
@@ -18516,7 +18516,7 @@ speechSynthesis.getVoices();
|
|||||||
|
|
||||||
$app.methods.replaceBioSymbols = function (text) {
|
$app.methods.replaceBioSymbols = function (text) {
|
||||||
if (!text) {
|
if (!text) {
|
||||||
return void 0;
|
return '';
|
||||||
}
|
}
|
||||||
var symbolList = {
|
var symbolList = {
|
||||||
'@': '@',
|
'@': '@',
|
||||||
@@ -18556,6 +18556,9 @@ speechSynthesis.getVoices();
|
|||||||
};
|
};
|
||||||
|
|
||||||
$app.methods.removeEmojis = function (text) {
|
$app.methods.removeEmojis = function (text) {
|
||||||
|
if (!text) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
return text
|
return text
|
||||||
.replace(
|
.replace(
|
||||||
/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,
|
/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,
|
||||||
|
|||||||
Reference in New Issue
Block a user