Allow one-character usernames (#1941)

This commit is contained in:
J. B. Crawford 2023-08-09 16:09:18 -06:00 committed by GitHub
parent 498be4f08a
commit 054b580fe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ lazy_static! {
/// Only lowercase+numbers, with limited chars. /// Only lowercase+numbers, with limited chars.
pub static ref INAME_RE: Regex = { pub static ref INAME_RE: Regex = {
#[allow(clippy::expect_used)] #[allow(clippy::expect_used)]
Regex::new("^[a-z][a-z0-9-_\\.]+$").expect("Invalid Iname regex found") Regex::new("^[a-z][a-z0-9-_\\.]*$").expect("Invalid Iname regex found")
}; };
pub static ref EXTRACT_VAL_DN: Regex = { pub static ref EXTRACT_VAL_DN: Regex = {