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

Function normalizeMoveTarget

packages/app-core/src/lib/move-note.ts:9–15  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

7}
8
9function normalizeMoveTarget(value: string): string {
10 return value
11 .trim()
12 .replace(/\\/g, '/')
13 .replace(/\/{2,}/g, '/')
14 .replace(/^\/+|\/+$/g, '')
15}
16
17function initialTargetFromPath(path: string): string {
18 const parts = path.split('/').filter(Boolean)

Callers 6

validateMoveNoteTargetFunction · 0.85
parseMoveNoteTargetFunction · 0.85
parseTemplateDestinationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected