Make PruneString helper

This commit is contained in:
Sinai
2021-05-11 02:38:24 +10:00
parent 617d68f7e9
commit 34c8ad3646
2 changed files with 34 additions and 16 deletions

View File

@ -219,9 +219,7 @@ namespace UnityExplorer.UI.CacheObject
if (!LastValueWasNull)
{
string s = Value as string;
if (s.Length > 200)
s = $"{s.Substring(0, 200)}...";
return $"\"{s}\"";
return $"\"{ToStringUtility.PruneString(s, 200, 5)}\"";
}
break;