pota/use/urlSmall URL string helpers — protocol / origin checks, a safe
decodeURIComponent, and the replaceParams primitive used
internally by the <A/> route builder.
cleanLink(href) — strip trailing punctuation
picked up from proseisFileProtocol(href) — file://?hasProtocol(href) — matches scheme://
(incl. nested)removeNestedProtocol(href) —
blob:http://… → http://…isAbsolute(href) — starts with / or has a
protocolisRelative(href) — !isAbsoluteisHash(url) — starts with #isExternal(href) — not under the current
originencodeURIComponent — platform
passthroughdecodeURIComponent(s) — safe
decode, never throwsparamsRegExp — the :name placeholder
regexreplaceParams(href, params) — substitute
:name placeholders