From: Bajszi Date: Tue, 12 Sep 2023 15:03:57 +0000 (+0200) Subject: Truncate with three dots X-Git-Tag: v23.10~1^2~40^2~2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/f4deb13301feb6087cb56f22ef52230905821952 Truncate with three dots --- diff --git a/app/Users/Models/User.php b/app/Users/Models/User.php index cbfdbef2d..3efbeec70 100644 --- a/app/Users/Models/User.php +++ b/app/Users/Models/User.php @@ -345,7 +345,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon return $splitName[0]; } - return mb_substr($this->name, 0, $chars) . '..'; + return mb_substr($this->name, 0, $chars-3) . '…'; } /**