MCPcopy Index your code
hub / github.com/Noumena-Network/code / sanitizePathComponent

Function sanitizePathComponent

src/utils/tasks.ts:218–220  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected