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