Add more chars to regex

master
Chloe Fontenot 🏳️‍⚧️ 2023-03-31 21:50:42 +07:00
parent dd5f9a8bd2
commit 7c0eae8827
1 changed files with 2 additions and 2 deletions

@ -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;