mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 12:23:09 +02:00
Fix regex test in the new command
This commit is contained in:
parent
cc23cb6fa9
commit
c194b74d23
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user