Update UniversalExtensions.cs

This commit is contained in:
Mira 2022-08-31 04:50:13 +02:00
parent eaa5b1a177
commit a17fdfe195
Signed by untrusted user who does not match committer: Xorog
GPG key ID: 983798ED9C3E7C36

View file

@ -633,7 +633,7 @@ public static class StringExt
if (string.IsNullOrEmpty(value))
return value;
return value.Length <= maxLength ? value : $"{value[ ..maxLength ]}..";
return value.Length <= maxLength ? value : $"{value[ ..(maxLength - 2) ]}..";
}