MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / decodeIdSegment

Function decodeIdSegment

packages/core/src/runtime/idCodec.ts:21–28  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

19 * Returns null if the segment is empty or cannot be decoded.
20 */
21export function decodeIdSegment(value: string): string | null {
22 if (value.length === 0) return null;
23 try {
24 return decodeURIComponent(value);
25 } catch {
26 return null;
27 }
28}
29
30/**
31 * Build a compound ID from a prefix and encoded segments.

Callers 7

idCodec.test.tsFile · 0.90
parseAccordionTriggerIdFunction · 0.85
parseTabsBarZoneIdFunction · 0.85
parseTabsContentZoneIdFunction · 0.85
parseTabsTriggerIdFunction · 0.85
parseBreadcrumbItemIdFunction · 0.85
parseCompoundIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected