changed function and access modifiers
This commit is contained in:
parent
281fdd87f0
commit
eb32545059
1 changed files with 2 additions and 2 deletions
|
@ -8,11 +8,11 @@ namespace Saviour_Backup_System
|
|||
{
|
||||
class tools
|
||||
{
|
||||
public static string Trim(string value, int maxLength)
|
||||
internal static string Trim(string value, int maxLength)
|
||||
{
|
||||
if (value.Length > maxLength)
|
||||
{
|
||||
return "..." + value.Substring(value.Length - (maxLength - 3));
|
||||
return value.Substring(0, maxLength - 3) + "...";
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
|
Reference in a new issue