Merge commit '4d5cd955423a6b0cb54c9e3030f4415db3e0b1e0' * commit '4d5cd955423a6b0cb54c9e3030f4415db3e0b1e0': Support IPv6 literal URLs, e.g., http://[2001:4860:b004::68]/ as per RFC 3896
This commit is contained in:
@@ -54,7 +54,7 @@ public class WebAddress {
|
||||
static Pattern sAddressPattern = Pattern.compile(
|
||||
/* scheme */ "(?:(http|HTTP|https|HTTPS|file|FILE)\\:\\/\\/)?" +
|
||||
/* authority */ "(?:([-A-Za-z0-9$_.+!*'(),;?&=]+(?:\\:[-A-Za-z0-9$_.+!*'(),;?&=]+)?)@)?" +
|
||||
/* host */ "([-A-Za-z0-9%_]+(?:\\.[-A-Za-z0-9%_]+)*)?" +
|
||||
/* host */ "([-A-Za-z0-9%_]+(?:\\.[-A-Za-z0-9%_]+)*|\\[[0-9a-fA-F:\\.]+\\])?" +
|
||||
/* port */ "(?:\\:([0-9]+))?" +
|
||||
/* path */ "(\\/?.*)?");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user