(name: string)
| 5 | */ |
| 6 | |
| 7 | export function sanitizeExportFilename(name: string): string { |
| 8 | const cleaned = name.replace(/[^a-zA-Z0-9_-]+/g, '_').replace(/^_+|_+$/g, '') |
| 9 | return cleaned || 'table' |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * Prefixes a single quote to values starting with a spreadsheet formula trigger |
no test coverage detected