From e688450f23876251258398333e6a366b713066ca Mon Sep 17 00:00:00 2001 From: Ken Powers Date: Thu, 30 May 2019 17:30:40 -0400 Subject: [PATCH] Don't convert emoji text unless the shortname is valid --- ts/components/emoji/lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/emoji/lib.ts b/ts/components/emoji/lib.ts index c16d841fb..a87190e48 100644 --- a/ts/components/emoji/lib.ts +++ b/ts/components/emoji/lib.ts @@ -202,7 +202,7 @@ export function replaceColons(str: string) { .split(':') .filter(Boolean); - if (shortName) { + if (shortName && isShortName(shortName)) { return convertShortName(shortName, parseInt(skinTone, 10)); }