From 847a8a87ac7a292cc4da61b9b927f7e75156c886 Mon Sep 17 00:00:00 2001 From: Aleksandr Date: Sat, 18 Oct 2025 19:58:58 +0300 Subject: [PATCH] add urlsafe character --- src/str/ascii.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/str/ascii.rs b/src/str/ascii.rs index 502a78d..a5ad3f1 100644 --- a/src/str/ascii.rs +++ b/src/str/ascii.rs @@ -79,6 +79,11 @@ valid!(Dot); pub enum Colon {} valid!(Colon); +/// URL-safe character. +#[int(u8, b'a'..=b'z' | b'A'..=b'Z' | b'0'..=b'9' | b'_' | b'-' | b'@', crate = crate)] +pub enum UrlSafe {} +valid!(UrlSafe); + #[int(u8, b' ', crate = crate)] pub enum Space {} valid!(Space);