Can upload custom emoji

This commit is contained in:
2020-04-03 18:32:11 +02:00
parent 61859e79dd
commit d717b6f2f7
3 changed files with 132 additions and 2 deletions

View File

@ -782,4 +782,13 @@ function IsFullScreen(){
document.webkitFullscreenElement ||
document.mozFullScreenElement ||
document.msFullscreenElement;
}
/**
* Check an emoji code
*
* @param s The emoji code to check
*/
function checkEmojiCode(s) {
return s.match(/^:[a-zA-Z0-9]+:$/) != null
}