1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 09:39:38 +02:00

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

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 =