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

Function toCsvRow

apps/sim/lib/table/export-format.ts:32–34  ·  view source on GitHub ↗
(values: string[])

Source from the content-addressed store, hash-verified

30}
31
32export function toCsvRow(values: string[]): string {
33 return values.map(escapeCsvField).join(',')
34}
35
36function escapeCsvField(field: string): string {
37 if (/[",\n\r]/.test(field)) {

Callers 3

resolveInputFilesFunction · 0.90
materializeFunction · 0.90
runTableExportFunction · 0.90

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected