mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Allow blank strings to be used for env var property substitutions
Fixes #4663
This commit is contained in:
parent
c9b902c2b4
commit
236e668201
@ -68,7 +68,7 @@ function mapEnvVarProperties(obj,prop,flow,config) {
|
|||||||
if (obj[prop][0] === "$" && (EnvVarPropertyRE_old.test(v) || EnvVarPropertyRE.test(v)) ) {
|
if (obj[prop][0] === "$" && (EnvVarPropertyRE_old.test(v) || EnvVarPropertyRE.test(v)) ) {
|
||||||
const envVar = v.substring(2,v.length-1);
|
const envVar = v.substring(2,v.length-1);
|
||||||
const r = redUtil.getSetting(config, envVar, flow);
|
const r = redUtil.getSetting(config, envVar, flow);
|
||||||
if (r !== undefined && r !== '') {
|
if (r !== undefined) {
|
||||||
obj[prop] = r
|
obj[prop] = r
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user