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.
Parameters
Section titled “Parameters”pattern
Section titled “pattern”string
Returns
Section titled “Returns”string