Skip to content

Commit fc76310

Browse files
authored
Merge pull request #747 from crowlKats/whatwg/url#685
add all C0 controls and add U+007F to is_invalid_domain_char
2 parents bd150e3 + 8f23a1d commit fc76310

File tree

2 files changed

+66
-589
lines changed

2 files changed

+66
-589
lines changed

url/src/host.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ impl Host<String> {
9292
let is_invalid_domain_char = |c| {
9393
matches!(
9494
c,
95-
'\0' | '\t'
96-
| '\n'
97-
| '\r'
95+
| '\0'..='\u{001F}'
9896
| ' '
9997
| '#'
10098
| '%'
@@ -108,6 +106,7 @@ impl Host<String> {
108106
| '\\'
109107
| ']'
110108
| '^'
109+
| '\u{007F}'
111110
)
112111
};
113112

0 commit comments

Comments
 (0)