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

Function sanitizeFilename

apps/sim/app/api/table/[tableId]/export/route.ts:118–121  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

116})
117
118function 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,

Callers 1

route.tsFile · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected