Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
fix(Things): Fixed default item name to remove dashes
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
  • Loading branch information
cdjackson committed Jun 11, 2016
1 parent a95e02c commit edcfb93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/configuration/thingConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit edcfb93

Please sign in to comment.