mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove IPv6 subnet parsing in host files like ::1/64
The host replacement code doesn’t do anything useful with it. (It only compares strings.)
This commit is contained in:
parent
ed6a3f5022
commit
0dfdc94cb2
2 changed files with 3 additions and 6 deletions
|
@ -46,7 +46,7 @@ pub mod storage_task;
|
|||
|
||||
pub static IPV4_REGEX: Regex = regex!(
|
||||
r"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$");
|
||||
pub static IPV6_REGEX: Regex = regex!(r"^([a-fA-F0-9]{0,4}[:]?){1,8}(/\d{1,3})?$");
|
||||
pub static IPV6_REGEX: Regex = regex!(r"^([a-fA-F0-9]{0,4}[:]?){1,8}$");
|
||||
|
||||
/// [Response type](https://fetch.spec.whatwg.org/#concept-response-type)
|
||||
#[derive(Clone, PartialEq, Copy)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue