From 3e3bee7bdb753f1c4bfa17715dd74f3e4406e294 Mon Sep 17 00:00:00 2001 From: Wiibleyde Date: Fri, 6 Dec 2024 18:20:07 +0100 Subject: [PATCH] refactor regex patterns in messageManager for improved accuracy Signed-off-by: Wiibleyde --- src/utils/messageManager.ts | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/utils/messageManager.ts b/src/utils/messageManager.ts index 9a5b90b..b381115 100644 --- a/src/utils/messageManager.ts +++ b/src/utils/messageManager.ts @@ -1,18 +1,17 @@ const quoiRegexs = [ // Quoi - /quoi/, - /quoi\?/, - /quoi\ ?/, - /quoi\ ?\?/, - /quoi\ ?\?/, - + /quoi$/, + /quoi\?$/, + /quoi\ ?$/, + /quoi\ ?\?$/, + /quoi\ ?\?$/, // Koa - /koa/, - /koa\?/, - /koa\ ?/, - /koa\ ?\?/, - /koa\ ?\?/, + /koa$/, + /koa\?$/, + /koa\ ?$/, + /koa\ ?\?$/, + /koa\ ?\?$/ ] export const possibleResponses = [