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:
parent
0f83c8af54
commit
72f6c03e00
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user