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

Function sanitizeExportFilename

apps/sim/lib/table/export-format.ts:7–10  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

5 */
6
7export function sanitizeExportFilename(name: string): string {
8 const cleaned = name.replace(/[^a-zA-Z0-9_-]+/g, '_').replace(/^_+|_+$/g, '')
9 return cleaned || 'table'
10}
11
12/**
13 * Prefixes a single quote to values starting with a spreadsheet formula trigger

Callers 1

runTableExportFunction · 0.90

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected