From f70d01d8bbf6f48f400e11f987b4e2740366552c Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 3 Apr 2020 18:19:40 +0200 Subject: [PATCH] Fix bad check --- src/utils/StringUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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