We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3118b46 commit 74e0cfbCopy full SHA for 74e0cfb
url/src/host.rs
@@ -90,24 +90,20 @@ impl Host<String> {
90
}
91
92
let is_invalid_domain_char = |c| {
93
- matches!(
94
- c,
95
- | '\0'..='\u{001F}'
96
- | ' '
97
- | '#'
98
- | '%'
99
- | '/'
100
- | ':'
101
- | '<'
102
- | '>'
103
- | '?'
104
- | '@'
105
- | '['
106
- | '\\'
107
- | ']'
108
- | '^'
109
- | '\u{007F}'
110
- )
+ matches!(c, |'\0'..='\u{001F}'| ' '
+ | '#'
+ | '%'
+ | '/'
+ | ':'
+ | '<'
+ | '>'
+ | '?'
+ | '@'
+ | '['
+ | '\\'
+ | ']'
+ | '^'
+ | '\u{007F}')
111
};
112
113
if domain.find(is_invalid_domain_char).is_some() {
0 commit comments