mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 13:29:22 +00:00
Fix bad check
This commit is contained in:
parent
6559c3b910
commit
f70d01d8bb
@ -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
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user