From c194b74d239b9310ccea63163683023a69c5705a Mon Sep 17 00:00:00 2001 From: o5pxels Date: Sun, 20 Dec 2020 23:02:57 -0600 Subject: [PATCH] Fix regex test in the new command --- src/commands/new.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/new.js b/src/commands/new.js index 0a81bb4..4ba559f 100644 --- a/src/commands/new.js +++ b/src/commands/new.js @@ -76,7 +76,7 @@ module.exports = { .setDescription('Please limit your ticket topic to less than 256 characters. A short sentence will do.') .setFooter(guild.name, guild.iconURL()) ); - } else if (/^[a-zA-Z0-9]+$/.test(config.default_topic)) { + } if (!/("|'|`)("|'|`)/.test(config.default_topic)) { topic = config.default_topic; } else if (topic.length < 1) {