MCPcopy Index your code
hub / github.com/simstudioai/sim / neutralizeCsvFormula

Function neutralizeCsvFormula

apps/sim/lib/table/export-format.ts:16–18  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

14 * (`=`, `+`, `-`, `@`, tab, CR), neutralizing CSV injection in Excel/Sheets.
15 */
16export 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,

Callers 4

resolveInputFilesFunction · 0.90
materializeFunction · 0.90
runTableExportFunction · 0.90
formatCsvValueFunction · 0.70

Calls 1

testMethod · 0.80

Tested by

no test coverage detected