Fix RBE node gap validation to allow floating point

This commit is contained in:
Dave Conway-Jones 2015-12-11 15:13:12 +00:00
parent c28f46ec9d
commit 11dfcd4a46
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-rbe", "name" : "node-red-node-rbe",
"version" : "0.1.0", "version" : "0.1.1",
"description" : "A Node-RED node that provides report-by-exception (RBE) and deadband capability.", "description" : "A Node-RED node that provides report-by-exception (RBE) and deadband capability.",
"dependencies" : { "dependencies" : {
}, },

View File

@ -51,7 +51,7 @@
defaults: { defaults: {
name: {value:""}, name: {value:""},
func: {value:"rbe"}, func: {value:"rbe"},
gap: {value:"",validate:RED.validators.regex(/^(\d*|)(%|)$/)} gap: {value:"",validate:RED.validators.regex(/^(\d*[.]*\d*|)(%|)$/)}
}, },
inputs:1, inputs:1,
outputs:1, outputs:1,