1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-21 09:05:17 +00:00

Create first custom emoji

This commit is contained in:
2020-04-03 16:20:08 +02:00
parent 2465b0c1ac
commit 131735a5f0
6 changed files with 108 additions and 1 deletions

View File

@ -75,4 +75,13 @@ export function check_youtube_id(s: string) : boolean {
&& !s.includes(".")
&& !s.includes("'")
&& !s.includes("\"")
}
/**
* Check an emoji code
*
* @param s The emoji code to check
*/
export function checkEmojiCode(s: string) : boolean {
return s.match(/^:[a-zA-Z0-9]*:$/) != null
}