From 7c0eae8827e04846be97b6d81faa4849a3b40317 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Fri, 31 Mar 2023 21:50:42 -0500 Subject: [PATCH] Add more chars to regex --- main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 5747b0c..96afe21 100644 --- a/main.ts +++ b/main.ts @@ -93,7 +93,7 @@ function matchAbbr(abbrTarget) { } function replyMessage(message, correctedMessage) { - message.reply("Your message contains an acronym! Let me fix that for you: \n >" + correctedMessage); + message.reply("Your message contains an acronym! Let me fix that for you: \n > " + correctedMessage); } client.on('messageCreate', message => { @@ -101,7 +101,7 @@ client.on('messageCreate', message => { if (message.author.bot) { return; } - var matchMessageArray = message.content.toLowerCase().split(/[ ,!@#$%^&*().;:|\\\]\[\{\}]]+/); + var matchMessageArray = message.content.toLowerCase().split(/[ ,!@#$%^&*().;:|]+/); console.log(matchMessageArray); let correctedMessage = message.content;