From 3d44931c5c524d6b7dd3fcf295f9e2327b9a2df7 Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Thu, 28 Nov 2024 21:52:59 +0100 Subject: [PATCH] iri --- src/iri.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iri.rs b/src/iri.rs index e889815..9c6d6e9 100644 --- a/src/iri.rs +++ b/src/iri.rs @@ -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 { u32::from_str_radix(hex, 16)