From 4fe601fb3967075561b747e2612807a23e60afe6 Mon Sep 17 00:00:00 2001 From: Melvin Jones Repol Date: Mon, 22 Jan 2024 15:47:34 +0800 Subject: [PATCH] Initial Commit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d06394c8..944be6c1 100644 --- a/index.js +++ b/index.js @@ -9465,7 +9465,7 @@ function testCommand(api, message, prefix, senderID, permission, regex) { if (prefix == message) return checkCmdPermission(api, permission, senderID); return false; } - const regExp = new RegExp("(^" + prefix + "|^" + prefix + "s)"); + const regExp = new RegExp("(^" + prefix + "$|^" + prefix + "\\s)"); if (regExp.test(message)) return checkCmdPermission(api, permission, senderID); return false; }