Skip to content

Commit 149d7f3

Browse files
authored
Merge pull request #1539 from mokeyish/patch-4
Fix CustomFunction receiving excaped inputs
2 parents bf166ab + c77e23b commit 149d7f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/components/nodes/utilities/CustomFunction/CustomFunction.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ class CustomFunction_Utilities implements INode {
7373

7474
if (Object.keys(inputVars).length) {
7575
for (const item in inputVars) {
76-
sandbox[`$${item}`] = inputVars[item]
76+
let value = inputVars[item]
77+
if (typeof value === 'string') {
78+
value = handleEscapeCharacters(value, true)
79+
}
80+
sandbox[`$${item}`] = value
7781
}
7882
}
7983

0 commit comments

Comments
 (0)