From fa75b40dfd565c437da99c84fbefed564d4b4eb1 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Thu, 16 Apr 2020 00:47:17 +0900 Subject: リアクションの修正 (#6260) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/misc/reaction-lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc') diff --git a/src/misc/reaction-lib.ts b/src/misc/reaction-lib.ts index d59fb67a6b..e9a9d4f7c9 100644 --- a/src/misc/reaction-lib.ts +++ b/src/misc/reaction-lib.ts @@ -70,7 +70,7 @@ export async function toDbReaction(reaction?: string | null, reacterHost?: strin return unicode.match('\u200d') ? unicode : unicode.replace(/\ufe0f/g, ''); } - const custom = reaction.match(/^:([\w+-]+):$/); + const custom = reaction.match(/^:([\w+-]+)(?:@\.)?:$/); if (custom) { const name = custom[1]; const emoji = await Emojis.findOne({ -- cgit v1.2.3-freya