1
Fork 0

changed function and access modifiers

This commit is contained in:
Jake Howard 2014-07-31 15:34:24 +01:00
parent 281fdd87f0
commit eb32545059

View file

@ -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;
}