diff --git a/src/utils/StringUtils.ts b/src/utils/StringUtils.ts index 91aca4e..338c2db 100644 --- a/src/utils/StringUtils.ts +++ b/src/utils/StringUtils.ts @@ -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 } \ No newline at end of file