MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / sanitizeProjectFilePath

Function sanitizeProjectFilePath

src/utils/folderTemplateProcessor.ts:148–155  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

146}
147
148function sanitizeProjectFilePath(path: string): string {
149 const normalizedPath = stripMarkdownExtension(path.trim()).replace(/\\/g, "/");
150 return normalizedPath
151 .split("/")
152 .filter((segment) => segment.length > 0)
153 .map((segment) => segment.replace(/[<>:"|?*]/g, "_"))
154 .join("/");
155}
156
157function getProjectFilePath(
158 project: string,

Callers 1

getProjectFilePathFunction · 0.85

Calls 1

stripMarkdownExtensionFunction · 0.85

Tested by

no test coverage detected