mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3349 from node-red-hitachi/fix-inject-property-validation
fix JSON propety validation of inject node
This commit is contained in:
commit
346db89e66
@ -234,7 +234,7 @@
|
|||||||
}
|
}
|
||||||
} else if (v[i].vt === "jsonata") {
|
} else if (v[i].vt === "jsonata") {
|
||||||
try{jsonata(v[i].v);}catch(e){return false;}
|
try{jsonata(v[i].v);}catch(e){return false;}
|
||||||
} else if ([i].vt === "json") {
|
} else if (v[i].vt === "json") {
|
||||||
try{JSON.parse(v[i].v);}catch(e){return false;}
|
try{JSON.parse(v[i].v);}catch(e){return false;}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user