mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
Fix pointless use of parenthesis in regex
This commit is contained in:
parent
99dfce0b44
commit
5f7d005e3d
@ -44,7 +44,7 @@ const reIPv6FromAuthority =
|
|||||||
const reMustNormalizeHostname =
|
const reMustNormalizeHostname =
|
||||||
/[^0-9a-z._-]/;
|
/[^0-9a-z._-]/;
|
||||||
const reOriginFromURI =
|
const reOriginFromURI =
|
||||||
/^(?:[^:\/?#]+:)\/\/[^\/?#]+/;
|
/^[^:\/?#]+:\/\/[^\/?#]+/;
|
||||||
const reHostnameFromNetworkURL =
|
const reHostnameFromNetworkURL =
|
||||||
/^(?:http|ws|ftp)s?:\/\/([0-9a-z_][0-9a-z._-]*[0-9a-z])(?::\d+)?\//;
|
/^(?:http|ws|ftp)s?:\/\/([0-9a-z_][0-9a-z._-]*[0-9a-z])(?::\d+)?\//;
|
||||||
const reIPAddressNaive =
|
const reIPAddressNaive =
|
||||||
|
Loading…
Reference in New Issue
Block a user