MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / normalizeSlashes

Function normalizeSlashes

packages/app-core/src/lib/wikilinks.ts:47–49  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

45}
46
47function normalizeSlashes(value: string): string {
48 return value.replace(/\\/g, '/').replace(/\/+/g, '/')
49}
50
51function stripMdExtension(value: string): string {
52 return value.replace(/\.md$/i, '')

Callers 4

resolveExplicitPathFunction · 0.70
resolvePathSuffixFunction · 0.70
suggestCreateNotePathFunction · 0.70
parseCreateNotePathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected