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

Function normalizeSlashes

apps/desktop/src/main/wikilink-rename.ts:20–22  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

18const TOP_FOLDERS = ['inbox', 'quick', 'archive', 'trash']
19
20function normalizeSlashes(value: string): string {
21 return value.replace(/\\/g, '/').replace(/\/+/g, '/')
22}
23
24function stripMdExtension(value: string): string {
25 return value.replace(/\.md$/i, '')

Callers 2

resolveExplicitPathFunction · 0.70
resolvePathSuffixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected