Skip to content

Commit

Permalink
Merge pull request #747 from crowlKats/whatwg/url#685
Browse files Browse the repository at this point in the history
add all C0 controls and add U+007F to is_invalid_domain_char
  • Loading branch information
valenting committed Jan 28, 2022
2 parents bd150e3 + 8f23a1d commit fc76310
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 589 deletions.
5 changes: 2 additions & 3 deletions url/src/host.rs
Expand Up @@ -92,9 +92,7 @@ impl Host<String> {
let is_invalid_domain_char = |c| {
matches!(
c,
'\0' | '\t'
| '\n'
| '\r'
| '\0'..='\u{001F}'
| ' '
| '#'
| '%'
Expand All @@ -108,6 +106,7 @@ impl Host<String> {
| '\\'
| ']'
| '^'
| '\u{007F}'
)
};

Expand Down

0 comments on commit fc76310

Please sign in to comment.