mirror of
https://github.com/chatmail/core.git
synced 2026-04-23 08:26:30 +03:00
Fix condition in normalize_name()
This commit is contained in:
@@ -1067,7 +1067,7 @@ pub fn normalize_name(full_name: impl AsRef<str>) -> String {
|
||||
}
|
||||
|
||||
let len = full_name.len();
|
||||
if len > 0 {
|
||||
if len > 1 {
|
||||
let firstchar = full_name.as_bytes()[0];
|
||||
let lastchar = full_name.as_bytes()[len - 1];
|
||||
if firstchar == b'\'' && lastchar == b'\''
|
||||
|
||||
Reference in New Issue
Block a user