mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add support for ${} env var syntax when skipping validation
Closes #1980 See also #825
This commit is contained in:
parent
a1f135bd66
commit
c0837ead0e
@ -130,6 +130,9 @@ RED.editor = (function() {
|
|||||||
if (/^\$\([a-zA-Z_][a-zA-Z0-9_]*\)$/.test(value)) {
|
if (/^\$\([a-zA-Z_][a-zA-Z0-9_]*\)$/.test(value)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (/^\$\{[a-zA-Z_][a-zA-Z0-9_]*\}$/.test(value)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if ("required" in definition[property] && definition[property].required) {
|
if ("required" in definition[property] && definition[property].required) {
|
||||||
valid = value !== "";
|
valid = value !== "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user