// Split up the device properties
var split = devices[i].split(",");
- // Each imported device can only have 3 properties
- if (split.length !== 3) {
+ // Each imported device can only have 4 properties
+ if (split.length !== 4) {
alert("There is an error on line " + (i + 1) + ": " + devices[i]);
return;
}
@@ -124,7 +124,10 @@
Help
alert("Group name on line " + (i + 1) + " exceeds 255 characters");
return;
}
-
+ if (split[3].length > 255) {
+ alert("Group name on line " + (i + 1) + " exceeds 255 characters");
+ return;
+ }
// If create groups is enabled, queue up the new groups to be created
if (!groupCache.hasOwnProperty(split[2])) {
if (createGroups) {
@@ -176,7 +179,7 @@