This commit is contained in:
Erik Foris 2021-11-15 14:27:31 +01:00
commit 0d9631b6c4

View File

@ -121,7 +121,7 @@ fn is_valid_user_name(username: &str) -> bool {
for c in username[1..].chars() { for c in username[1..].chars() {
if !( if !(
c.is_ascii_alphabetic() && c.is_ascii_lowercase() || c.is_alphabetic() && c.to_string() == c.to_lowercase().to_string() ||
c.is_ascii_digit() || c.is_ascii_digit() ||
"_-.".contains(c) "_-.".contains(c)
) { ) {