From edcfb932a65beef510c16663d91d9c22a2e3c16e Mon Sep 17 00:00:00 2001 From: Chris Jackson Date: Sat, 11 Jun 2016 22:24:19 +0100 Subject: [PATCH] fix(Things): Fixed default item name to remove dashes Signed-off-by: Chris Jackson --- src/app/configuration/thingConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/configuration/thingConfig.js b/src/app/configuration/thingConfig.js index 8b5652c1..247c44f7 100644 --- a/src/app/configuration/thingConfig.js +++ b/src/app/configuration/thingConfig.js @@ -527,7 +527,7 @@ angular.module('Config.Things', [ category: channel.channelType.category }; - var name = channel.uid.replace(/:/g, "_"); + var name = channel.uid.replace(/[:-]/g, "_"); if (ItemModel.getItem(name) == null) { newItem.name = name; }