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

Function normalizeVaultPath

src/utils/pathExclusions.ts:1–3  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

1function normalizeVaultPath(path: string): string {
2 return path.replace(/\\/g, "/").replace(/^\/+/, "").replace(/\/+$/, "");
3}
4
5export function parseExcludedFolders(
6 excludedFolders: string | string[] | null | undefined

Callers 2

parseExcludedFoldersFunction · 0.70
isPathInExcludedFolderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected