1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 13:29:22 +00:00

Fix bad check

This commit is contained in:
Pierre HUBERT 2020-04-03 18:19:40 +02:00
parent 6559c3b910
commit f70d01d8bb

View File

@ -83,5 +83,5 @@ export function check_youtube_id(s: string) : boolean {
* @param s The emoji code to check * @param s The emoji code to check
*/ */
export function checkEmojiCode(s: string) : boolean { export function checkEmojiCode(s: string) : boolean {
return s.match(/^:[a-zA-Z0-9]*:$/) != null return s.match(/^:[a-zA-Z0-9]+:$/) != null
} }