From 4c5947e65446a6c5f7e0089cf27909363c7d2ccf Mon Sep 17 00:00:00 2001 From: Reetus <6239195+Reetus@users.noreply.github.com> Date: Mon, 19 Aug 2024 21:09:07 +0700 Subject: [PATCH] fix: Fixes missing CopyTo in FixHtmlFormattable (#1935) --- Projects/Server/Utilities/Utility.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Projects/Server/Utilities/Utility.cs b/Projects/Server/Utilities/Utility.cs index 8eff6002d..7848903c5 100644 --- a/Projects/Server/Utilities/Utility.cs +++ b/Projects/Server/Utilities/Utility.cs @@ -237,6 +237,8 @@ public static class Utility { var chars = STArrayPool.Shared.Rent(str.Length); var span = chars.AsSpan(0, str.Length); + str.CopyTo(span); + var formattable = new PooledArraySpanFormattable(chars, str.Length); if (!str.IsNullOrWhiteSpace())