changed nodegroup field validation (#376)

Allows letters, numbers, spaces, and ( _ . - ) to more closely align with node names in emoncms.
This commit is contained in:
4f96a64d 2017-11-18 18:33:05 -05:00 committed by Dave Conway-Jones
parent 0f83c8af54
commit 72f6c03e00
1 changed files with 1 additions and 1 deletions

View File

@ -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,