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

Function decodeHrefPath

apps/desktop/src/preload/index.ts:132–139  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

130}
131
132function decodeHrefPath(value: string): string {
133 const cleaned = stripQueryAndHash(value)
134 try {
135 return decodeURIComponent(cleaned)
136 } catch {
137 return cleaned
138 }
139}
140
141function resolveVaultRelativeAssetPath(notePath: string, href: string): string | null {
142 const trimmed = href.trim()

Callers 1

Calls 1

stripQueryAndHashFunction · 0.70

Tested by

no test coverage detected