(name: string)
| 116 | }) |
| 117 | |
| 118 | function sanitizeFilename(name: string): string { |
| 119 | const cleaned = name.replace(/[^a-zA-Z0-9_-]+/g, '_').replace(/^_+|_+$/g, '') |
| 120 | return cleaned || 'table' |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * Serializes a cell for CSV. Only string cells are formula-neutralized; numbers, |