MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / sanitizePathComponent

Function sanitizePathComponent

restored-src/src/utils/tasks.ts:217–219  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

215 * Only allows alphanumeric characters, hyphens, and underscores.
216 */
217export function sanitizePathComponent(input: string): string {
218 return input.replace(/[^a-zA-Z0-9_-]/g, '-')
219}
220
221export function getTasksDir(taskListId: string): string {
222 return join(

Callers 4

getTasksDirFunction · 0.85
getTaskPathFunction · 0.85
getInboxPathFunction · 0.85
ensureInboxDirFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected