mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 08:35:17 +00:00
Fix bad check
This commit is contained in:
@ -83,5 +83,5 @@ export function check_youtube_id(s: string) : boolean {
|
||||
* @param s The emoji code to check
|
||||
*/
|
||||
export function checkEmojiCode(s: string) : boolean {
|
||||
return s.match(/^:[a-zA-Z0-9]*:$/) != null
|
||||
return s.match(/^:[a-zA-Z0-9]+:$/) != null
|
||||
}
|
Reference in New Issue
Block a user