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

Function sanitizeFileName

apps/sim/executor/constants.ts:459–464  ·  view source on GitHub ↗
(fileName: string | null | undefined)

Source from the content-addressed store, hash-verified

457}
458
459export function sanitizeFileName(fileName: string | null | undefined): string {
460 if (!fileName || typeof fileName !== 'string') {
461 return 'untitled'
462 }
463 return fileName.replace(/\s+/g, '-').replace(/[^a-zA-Z0-9.-]/g, '_')
464}
465
466export function isCustomTool(toolId: string): boolean {
467 return toolId.startsWith(AGENT.CUSTOM_TOOL_PREFIX)

Callers 8

uploadToBlobFunction · 0.90
initiateMultipartUploadFunction · 0.90
uploadToS3Function · 0.90
generateWorkspaceFileKeyFunction · 0.90
generateExecutionFileKeyFunction · 0.90
route.tsFile · 0.90

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected