From 18571c52fb6577bbe0319c916f45d85341cc3ec9 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sun, 4 Nov 2018 17:36:37 +0900 Subject: [PATCH] Fix: emoji regex (#3093) --- src/mfm/parse/elements/emoji.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mfm/parse/elements/emoji.ts b/src/mfm/parse/elements/emoji.ts index 485b7804c..4d66d4c01 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 {