Fix pointless use of parenthesis in regex

This commit is contained in:
Raymond Hill 2021-12-02 17:58:52 -05:00
parent 99dfce0b44
commit 5f7d005e3d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ const reIPv6FromAuthority =
const reMustNormalizeHostname =
/[^0-9a-z._-]/;
const reOriginFromURI =
/^(?:[^:\/?#]+:)\/\/[^\/?#]+/;
/^[^:\/?#]+:\/\/[^\/?#]+/;
const reHostnameFromNetworkURL =
/^(?:http|ws|ftp)s?:\/\/([0-9a-z_][0-9a-z._-]*[0-9a-z])(?::\d+)?\//;
const reIPAddressNaive =