Skip to main content

URL_REGEX

const URL_REGEX: RegExp

RFC 3986 compliant URL regex (http/https only, with strict validation). Scheme: http or https only. Authority: optional userinfo, host (domain or IPv4), optional port. Path, query, fragment: standard URI components. Note: Prevents double separators (??, ##) by ensuring query/fragment don't start with their separator.

Since

2.0.0