Merge pull request #1539 from mokeyish/patch-4

Fix CustomFunction receiving excaped inputs
This commit is contained in:
Henry Heng 2024-01-16 10:42:55 +00:00 committed by GitHub
commit 149d7f3851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -73,7 +73,11 @@ class CustomFunction_Utilities implements INode {
if (Object.keys(inputVars).length) { if (Object.keys(inputVars).length) {
for (const item in inputVars) { for (const item in inputVars) {
sandbox[`$${item}`] = inputVars[item] let value = inputVars[item]
if (typeof value === 'string') {
value = handleEscapeCharacters(value, true)
}
sandbox[`$${item}`] = value
} }
} }