Make PruneString helper

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

No files matched your search

+1 -3
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;