Merge branch 'dev' into 3934-csv-rfc4180

This commit is contained in:
Steve-Mcl
2024-01-23 10:59:05 +00:00
5 changed files with 306 additions and 49 deletions

View File

@@ -233,7 +233,9 @@ module.exports = function(RED) {
// only replace if they match exactly
RED.util.setMessageProperty(msg,property,value);
} else {
current = current.replace(fromRE,value);
// if target is boolean then just replace it
if (rule.tot === "bool") { current = value; }
else { current = current.replace(fromRE,value); }
RED.util.setMessageProperty(msg,property,current);
}
} else if ((typeof current === 'number' || current instanceof Number) && fromType === 'num') {