(formString: string)
| 1522 | } |
| 1523 | |
| 1524 | const parseFormStringToJson = (formString: string): Record<string, string> => { |
| 1525 | const result: Record<string, string> = {} |
| 1526 | const lines = formString.split('\n') |
| 1527 | |
| 1528 | for (const line of lines) { |
| 1529 | const [key, value] = line.split(': ').map((part) => part.trim()) |
| 1530 | if (key && value) { |
| 1531 | result[key] = value |
| 1532 | } |
| 1533 | } |
| 1534 | |
| 1535 | return result |
| 1536 | } |
| 1537 | |
| 1538 | /* |
| 1539 | * Function to traverse the flow graph and execute the nodes |