Summary
In system/function_all.php
replace:
and function validRoomName
with the following: (it supports most emojis)
function validRoomName($name){
if(!isTooLong($name, 30) && !isTooShort($name, 4) && preg_match("/^[a-zA-Z0-9 _\-\p{Arabic}\p{Cyrillic}\p{Latin}\p{Han}\p{Katakana}\p{Hiragana}\p{Hebrew}\p{So}]{4,}$/ui", $name)){
return true;
}
}
If an emoji does not work for you then if you look in the code you will see \p{So}
For example if ❤️ does not work then you will add it like this:
\p{So}❤️]
entire thing will be
function validRoomName($name){
if(!isTooLong($name, 30) && !isTooShort($name, 4) && preg_match("/^[a-zA-Z0-9 _\-\p{Arabic}\p{Cyrillic}\p{Latin}\p{Han}\p{Katakana}\p{Hiragana}\p{Hebrew}\p{So}❤️]{4,}$/ui", $name)){
return true;
}
}