From fe1172fbb637ad8af3688fae56b10c435b9cf497 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Sat, 27 Apr 2024 20:41:55 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=83=8F=E3=82=A4=E3=83=95=E3=83=B3?= =?UTF-8?q?=E3=82=92=E5=90=AB=E3=82=80=E3=83=AA=E3=83=A2=E3=83=BC=E3=83=88?= =?UTF-8?q?=E7=B5=B5=E6=96=87=E5=AD=97=E3=81=8C=E6=8F=8F=E7=94=BB=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=AA=E3=81=84=20(#13715)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/CustomEmojiService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/CustomEmojiService.ts b/packages/backend/src/core/CustomEmojiService.ts index edb9335b6e..1c75566755 100644 --- a/packages/backend/src/core/CustomEmojiService.ts +++ b/packages/backend/src/core/CustomEmojiService.ts @@ -20,7 +20,7 @@ import { query } from '@/misc/prelude/url.js'; import type { Serialized } from '@/types.js'; import { ModerationLogService } from '@/core/ModerationLogService.js'; -const parseEmojiStrRegexp = /^(\w+)(?:@([\w.-]+))?$/; +const parseEmojiStrRegexp = /^([-\w]+)(?:@([\w.-]+))?$/; @Injectable() export class CustomEmojiService implements OnApplicationShutdown {