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

Function isPathLikeWikilinkTarget

apps/desktop/src/main/wikilink-rename.ts:32–35  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

30}
31
32export function isPathLikeWikilinkTarget(target: string): boolean {
33 const trimmed = target.trim()
34 return trimmed.startsWith('/') || trimmed.includes('/') || /\.md$/i.test(trimmed)
35}
36
37function resolveExplicitPath(notes: RenameNoteRef[], target: string): RenameNoteRef | null {
38 const normalized = normalizeSlashes(target.trim())

Callers 1

resolveWikilinkTargetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected