fix: dash ("-" char) in emoji names (#816)

This commit is contained in:
kate 2023-01-25 01:55:17 +08:00 committed by GitHub
parent dadf0b6329
commit 89b3c9c098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}$/; const RE_ULID = /^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$/;
export function RenderEmoji({ match }: CustomComponentProps) { export function RenderEmoji({ match }: CustomComponentProps) {