Fix regex expression test on default_topic

This commit is contained in:
o5pxels 2020-12-20 23:01:26 -06:00
parent 641f13169e
commit cc23cb6fa9

View File

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