mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🔀 Merge branch 'RicardoE105-feature/slack-extended'
This commit is contained in:
commit
a25959a157
10
packages/nodes-base/nodes/Slack/GenericFunctions.ts
Normal file
10
packages/nodes-base/nodes/Slack/GenericFunctions.ts
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
export function validateJSON(json: string | undefined): any { // tslint:disable-line:no-any
|
||||||
|
let result;
|
||||||
|
try {
|
||||||
|
result = JSON.parse(json!);
|
||||||
|
} catch (exception) {
|
||||||
|
result = undefined;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue