fix: Cleans up some string allocations from trim (#1759)

This commit is contained in:
Kamron Batman 2024-05-03 22:43:11 -07:00 • committed by GitHub
parent 9d2f471e91
commit d77668d77a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 15 additions and 22 deletions

View file

@ -1,3 +1,4 @@
using System;
using Server.Gumps;
using Server.Mobiles;
using Server.Network;
@ -265,7 +266,7 @@ namespace Server.Guilds
return;
}
var title = text.Trim().FixHtml();
var title = text.AsSpan().Trim().FixHtml();
if (title.Length > 20)
{