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 8e055c4 commit 914d6ffCopy full SHA for 914d6ff
src/lib.rs
@@ -246,7 +246,7 @@ fn prohibited_node_character(c: char) -> bool {
246
pub fn resourceprep(s: &str) -> Result<Cow<'_, str>, Error> {
247
// fast path for ascii text
248
if s.chars()
249
- .all(|c| c.is_ascii() && !tables::ascii_control_character(c))
+ .all(|c| matches!(c, ' '..='~'))
250
{
251
return Ok(Cow::Borrowed(s));
252
}
0 commit comments