Don't convert emoji text unless the shortname is valid
This commit is contained in:
parent
a934759e66
commit
e688450f23
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ export function replaceColons(str: string) {
|
|||
.split(':')
|
||||
.filter(Boolean);
|
||||
|
||||
if (shortName) {
|
||||
if (shortName && isShortName(shortName)) {
|
||||
return convertShortName(shortName, parseInt(skinTone, 10));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue