(value: string)
| 14 | * (`=`, `+`, `-`, `@`, tab, CR), neutralizing CSV injection in Excel/Sheets. |
| 15 | */ |
| 16 | export function neutralizeCsvFormula(value: string): string { |
| 17 | return /^[=+\-@\t\r]/.test(value) ? `'${value}` : value |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Serializes a cell for CSV. Only string cells are formula-neutralized; numbers, |
no test coverage detected