From c532bee8ea78e2bd63ba021b5c550bc2d6eb9af0 Mon Sep 17 00:00:00 2001 From: Clansty Date: Fri, 13 Jan 2023 10:06:53 +0800 Subject: [PATCH] Fix: regex for hug --- src/controllers/HugController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/HugController.ts b/src/controllers/HugController.ts index 1b02846..5397820 100644 --- a/src/controllers/HugController.ts +++ b/src/controllers/HugController.ts @@ -23,7 +23,7 @@ type ActionSubjectQq = { type ActionSubject = ActionSubjectTg | ActionSubjectQq; -const COMMAND_REGEX = /^\/([\u4e00-\u9fa5][\u4e00-\u9fa5\w]*)|\$(\w[\u4e00-\u9fa5\w]*)/; // /抱 /$rua +const COMMAND_REGEX = /^\/([^\w\s$]\S*)|\$(\w\S*)/; // /抱 /$rua export default class { private readonly log: Logger;