Fix dash ("-" char) in emoji names

pull/816/head
kate 2022-11-07 19:07:41 +08:00 committed by GitHub
parent 9f3e47d327
commit a3f48ea91a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const Emoji = styled.img`
}
`;
const RE_EMOJI = /:([a-zA-Z0-9_+]+):/g;
const RE_EMOJI = /:([a-zA-Z0-9\-_+]+):/g;
const RE_ULID = /^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$/;
export function RenderEmoji({ match }: CustomComponentProps) {