Add more chars to regex
This commit is contained in:
parent
e3b1b81565
commit
849e961d91
4
main.ts
4
main.ts
@ -93,7 +93,7 @@ function matchAbbr(abbrTarget) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function replyMessage(message, correctedMessage) {
|
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 => {
|
client.on('messageCreate', message => {
|
||||||
@ -101,7 +101,7 @@ client.on('messageCreate', message => {
|
|||||||
if (message.author.bot) {
|
if (message.author.bot) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var matchMessageArray = message.content.toLowerCase().split(/[ ,!@#$%^&*().;:|\\\]\[\{\}]]+/);
|
var matchMessageArray = message.content.toLowerCase().split(/[ ,!@#$%^&*().;:|]+/);
|
||||||
|
|
||||||
console.log(matchMessageArray);
|
console.log(matchMessageArray);
|
||||||
let correctedMessage = message.content;
|
let correctedMessage = message.content;
|
||||||
|
Loading…
Reference in New Issue
Block a user