From 0f1a7e97983b97555c70fb062e7048731c460d59 Mon Sep 17 00:00:00 2001 From: Clansty Date: Wed, 22 Feb 2023 13:21:49 +0800 Subject: [PATCH] fix: Hug regex --- 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 0586bcd..06343a8 100644 --- a/src/controllers/HugController.ts +++ b/src/controllers/HugController.ts @@ -23,7 +23,7 @@ type ActionSubjectQq = { type ActionSubject = ActionSubjectTg | ActionSubjectQq; -const COMMAND_REGEX = /^\/([^\w\s$]\S*)|\$(\w\S*)/; // /抱 /$rua +const COMMAND_REGEX = /^\/([^\w\s$]\S*)|^\/\$(\w\S*)/; // /抱 /$rua export default class { private readonly log: Logger;