(text = '')
| 438 | } |
| 439 | |
| 440 | export function convertCommaToLine (text = '') { |
| 441 | let arr = text.split(',') |
| 442 | arr = arr.map((row) => row.trim()) |
| 443 | const result = arr.join('\n').trim() |
| 444 | return result |
| 445 | } |
| 446 | |
| 447 | export function convertLineToComma (text = '') { |
| 448 | const result = text.trim().replace(/(?:\r\n|\r|\n)/g, ',') |