Skip to content

Commit

Permalink
iri
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Nov 28, 2024
1 parent 20386c7 commit 3d44931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,12 @@ mod parser {
})(s)
}
fn parse_pct_encoded(s: &str) -> ParserResult<&str> {
preceded(
recognize(preceded(
tag("%"),
verify(take(2usize), |hex: &str| {
hex.chars().all(|c| c.is_ascii_hexdigit())
}),
)(s)
))(s)
}
fn hex_to_char(hex: &str) -> Option<char> {
u32::from_str_radix(hex, 16)
Expand Down

0 comments on commit 3d44931

Please sign in to comment.