mirror of
https://github.com/GiriNeko/hbb_common.git
synced 2025-12-17 13:57:26 +00:00
Update lib.rs
This commit is contained in:
parent
8b6700a33f
commit
f9a10eaa1f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue