From 8ae8cdb1cb05bce2a8dee6d704292ba0a4dbfd2d Mon Sep 17 00:00:00 2001 From: Clint Berry Date: Mon, 27 Oct 2014 17:41:06 -0600 Subject: [PATCH] Added support for the new ephemeral topic feature --- src/wire.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wire.coffee b/src/wire.coffee index a57d326..054f1f5 100644 --- a/src/wire.coffee +++ b/src/wire.coffee @@ -136,7 +136,7 @@ exports.auth = (token) -> command 'AUTH', token validTopicName = (topic) -> - (0 < topic.length < 33) and topic.match(/^[\.a-zA-Z0-9_-]+$/)? + (0 < topic.length < 33) and topic.match(/^[\.a-zA-Z0-9_-]+(#ephemeral)$/)? validChannelName = (channel) -> channelRe = /^[\.a-zA-Z0-9_-]+(#ephemeral)?$/