MCPcopy Index your code
hub / github.com/deepnote/deepnote / sanitizeFileName

Function sanitizeFileName

packages/convert/src/utils.ts:7–9  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

5 * @returns A sanitized filename safe for all platforms
6 */
7export function sanitizeFileName(name: string): string {
8 return name.replace(/[<>:"/\\|?*]/g, '_').replace(/\s+/g, '_')
9}
10
11/**
12 * Deepnote block types that should be converted to code cells.

Calls

no outgoing calls

Tested by

no test coverage detected