MCPcopy Index your code
hub / github.com/callstack/agent-device / sanitizePathPart

Function sanitizePathPart

src/utils/diagnostics.ts:209–211  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

207}
208
209function sanitizePathPart(value: string): string {
210 return value.replace(/[^a-zA-Z0-9._-]/g, '_');
211}
212
213function appendDiagnosticLine(logPath: string, line: string): void {
214 fs.mkdirSync(path.dirname(logPath), { recursive: true });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected