Don't convert emoji text unless the shortname is valid

This commit is contained in:
Ken Powers 2019-05-30 17:30:40 -04:00 committed by Scott Nonnenberg
parent a934759e66
commit e688450f23

View file

@ -202,7 +202,7 @@ export function replaceColons(str: string) {
.split(':')
.filter(Boolean);
if (shortName) {
if (shortName && isShortName(shortName)) {
return convertShortName(shortName, parseInt(skinTone, 10));
}