diff --git a/src/mfm/parse/elements/emoji.ts b/src/mfm/parse/elements/emoji.ts index 485b7804c8..4d66d4c014 100644 --- a/src/mfm/parse/elements/emoji.ts +++ b/src/mfm/parse/elements/emoji.ts @@ -9,7 +9,7 @@ export type TextElementEmoji = { }; export default function(text: string) { - const match = text.match(/^:([a-zA-Z0-9+-_]+?):/); + const match = text.match(/^:([a-zA-Z0-9+_-]+):/); if (!match) return null; const emoji = match[0]; return {