MCPcopy Create free account
hub / github.com/solidjs/solid-router / encodePathSegment

Function encodePathSegment

src/recognizer/normalizer.ts:25–30  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

23const PATH_SEGMENT_ENCODINGS = /%(?:2[46BC]|3[ABD]|40)/g;
24
25export function encodePathSegment(str: string): string {
26 return encodeURIComponent(str).replace(
27 PATH_SEGMENT_ENCODINGS,
28 decodeURIComponent
29 );
30}

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…