From f9a10eaa1fe0b3614232a17ffa2c8d1f8d305456 Mon Sep 17 00:00:00 2001 From: RustDesk <71636191+rustdesk@users.noreply.github.com> Date: Sat, 15 Feb 2025 18:41:34 +0800 Subject: [PATCH] Update lib.rs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9414c1a..9475b96 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -240,7 +240,7 @@ where } pub fn is_valid_custom_id(id: &str) -> bool { - regex::Regex::new(r"^[a-zA-Z]\w{5,15}$") + regex::Regex::new(r"^[a-zA-Z][\w-]{5,15}$") .unwrap() .is_match(id) }