MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / safeDecodeURIComponent

Function safeDecodeURIComponent

src/editor/taskLinkDisplayText.ts:1–7  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1function safeDecodeURIComponent(value: string): string {
2 try {
3 return decodeURIComponent(value);
4 } catch {
5 return value;
6 }
7}
8
9function stripMarkdownPathBrackets(value: string): string {
10 const trimmed = value.trim();

Callers 3

normalizePathLikeLabelFunction · 0.70
normalizeSubpathLabelFunction · 0.70
extractTaskLinkSubpathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected