mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 12:23:09 +02:00
Fix regex expression test on default_topic
This commit is contained in:
parent
641f13169e
commit
cc23cb6fa9
@ -90,7 +90,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
|
||||
if (/^[a-zA-Z0-9]+$/.test(config.default_topic)) {
|
||||
if (!/("|'|`)("|'|`)/.test(config.default_topic)) {
|
||||
topic = config.default_topic;
|
||||
} else {
|
||||
topic = 'No topic given (created via panel)';
|
||||
|
Loading…
Reference in New Issue
Block a user