mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-14 03:08:27 -04:00
* add: .prunecancel to cancel active prunes
* change: .qs improved with thumbnails * change: .prune now reports progress * dev: DryIoc replacing Ninject
This commit is contained in:
@@ -32,7 +32,7 @@ public static class StringExtensions
|
||||
{
|
||||
if (hideDots)
|
||||
{
|
||||
return str?.Substring(0, maxLength);
|
||||
return str?.Substring(0, Math.Min(str?.Length ?? 0, maxLength));
|
||||
}
|
||||
|
||||
if (str is null || str.Length <= maxLength)
|
||||
|
Reference in New Issue
Block a user