MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / sanitizePathComponent

Function sanitizePathComponent

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 5

tasks.test.tsFile · 0.90
getTasksDirFunction · 0.85
getTaskPathFunction · 0.85
getInboxPathFunction · 0.85
ensureInboxDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected