Update UniversalExtensions.cs
This commit is contained in:
parent
eaa5b1a177
commit
a17fdfe195
1 changed files with 1 additions and 1 deletions
|
|
@ -633,7 +633,7 @@ public static class StringExt
|
||||||
if (string.IsNullOrEmpty(value))
|
if (string.IsNullOrEmpty(value))
|
||||||
return value;
|
return value;
|
||||||
|
|
||||||
return value.Length <= maxLength ? value : $"{value[ ..maxLength ]}..";
|
return value.Length <= maxLength ? value : $"{value[ ..(maxLength - 2) ]}..";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue