From e0f0f66c5f755ed2d7b88f9551a94a14118e9a3f Mon Sep 17 00:00:00 2001 From: EliasSchriefer Date: Mon, 25 Oct 2021 20:00:20 +0200 Subject: [PATCH] Change username validation --- src/graphql.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphql.rs b/src/graphql.rs index 1282d5e..11eaad1 100644 --- a/src/graphql.rs +++ b/src/graphql.rs @@ -121,7 +121,7 @@ fn is_valid_user_name(username: &str) -> bool { for c in username[1..].chars() { if !( - c.is_ascii_alphabetic() && c.is_ascii_lowercase() || + c.is_alphabetic() && c.to_string() == c.to_lowercase().to_string() || c.is_ascii_digit() || "_-.".contains(c) ) {