Skip to content

normalizeUrlPath

normalizeUrlPath(rawPath): string | null

Defined in: packages/core/src/core/validation/path-matching.ts:96

Normalize a raw URL path: recursive percent-decode (4 rounds max) + dot-segment collapse. Returns null when the path is not decodable (invalid UTF-8 escape or leftover %XX run after the rounds).

string

string | null