mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-05 16:39:55 +00:00
Fixing display name limit. Fixes #1421
This commit is contained in:
parent
68edda7bf5
commit
2e5ccaf7fe
1 changed files with 2 additions and 2 deletions
|
@ -110,8 +110,8 @@ pub fn is_valid_username(name: &str) -> bool {
|
|||
// Can't do a regex here, reverse lookarounds not supported
|
||||
pub fn is_valid_preferred_username(preferred_username: &str) -> bool {
|
||||
!preferred_username.starts_with('@')
|
||||
&& preferred_username.len() >= 3
|
||||
&& preferred_username.len() <= 20
|
||||
&& preferred_username.chars().count() >= 3
|
||||
&& preferred_username.chars().count() <= 20
|
||||
}
|
||||
|
||||
pub fn is_valid_community_name(name: &str) -> bool {
|
||||
|
|
Loading…
Reference in a new issue