(value)
| 34 | } |
| 35 | |
| 36 | function escapeCSV(value) { |
| 37 | if (value === null || value === undefined) { |
| 38 | return ''; |
| 39 | } |
| 40 | const str = String(value); |
| 41 | if (str.includes(',') || str.includes('\n') || str.includes('"')) { |
| 42 | return '"' + str.replace(/"/g, '""') + '"'; |
| 43 | } |
| 44 | return str; |
| 45 | } |
| 46 | |
| 47 | export function getCurrentConnectionExportData() { |
| 48 | const connection = state.connections[state.selectedConnectionId]; |
no outgoing calls
no test coverage detected