1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

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

View File

@ -31,7 +31,7 @@
defaults: { defaults: {
name: {value:"Emoncms"}, name: {value:"Emoncms"},
emonServer: {type:"emoncms-server", required:true}, 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, inputs:1,
outputs:0, outputs:0,