From 72f6c03e00a7b21776d8a1a18f7e43658937fd4e Mon Sep 17 00:00:00 2001 From: 4f96a64d <33788451+4f96a64d@users.noreply.github.com> Date: Sat, 18 Nov 2017 18:33:05 -0500 Subject: [PATCH] changed nodegroup field validation (#376) Allows letters, numbers, spaces, and ( _ . - ) to more closely align with node names in emoncms. --- io/emoncms/88-emoncms.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/emoncms/88-emoncms.html b/io/emoncms/88-emoncms.html index 76c70a0a..21fe4a9a 100644 --- a/io/emoncms/88-emoncms.html +++ b/io/emoncms/88-emoncms.html @@ -31,7 +31,7 @@ defaults: { name: {value:"Emoncms"}, emonServer: {type:"emoncms-server", required:true}, - nodegroup: {value:"", validate:function(v) {return ((v === "")||(/^\d+$/).test(v));} } + nodegroup: {value:"", validate:function(v) {return ((v === "")||(/^[\d\w\s.-]*$/).test(v));} } }, inputs:1, outputs:0,