function isValidPublishTopic(topic) {
        if (topic.length === 0) return false;
        return !/[\+#\b\f\n\r\t\v\0]/.test(topic);
    }
Test a topic string is valid for publishing
@param {string} topic
@returns `true` if it is a valid topic