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

Function neutralizeCsvFormula

apps/sim/lib/core/utils/csv.ts:5–7  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

3 * (`=`, `+`, `-`, `@`, tab, CR), neutralizing CSV injection in Excel/Sheets.
4 */
5export function neutralizeCsvFormula(value: string): string {
6 return /^[=+\-@\t\r]/.test(value) ? `'${value}` : value
7}

Callers 3

escapeCsvFunction · 0.90
startFunction · 0.90
formatCsvValueFunction · 0.90

Calls 1

testMethod · 0.80

Tested by

no test coverage detected