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:
@ -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
|
||||
}
|
Reference in New Issue
Block a user