Skip to content

Function: normalizeUrlPattern()

normalizeUrlPattern(pattern): string

Normalize one raw allow-list entry: trim it and drop any scheme. The scheme is irrelevant to matching (we compare against hostname / host+path), so https://docs.example.com/x and docs.example.com/x are equivalent.

string

string