Skip to content

Commit

Permalink
Fix missing CopyTo in FixHtmlFormattable
Browse files Browse the repository at this point in the history
  • Loading branch information
Reetus committed Aug 19, 2024
1 parent 36c373b commit 9f37bee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Projects/Server/Utilities/Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ public static PooledArraySpanFormattable FixHtmlFormattable(this ReadOnlySpan<ch
{
var chars = STArrayPool<char>.Shared.Rent(str.Length);
var span = chars.AsSpan(0, str.Length);
str.CopyTo(span);

var formattable = new PooledArraySpanFormattable(chars, str.Length);

if (!str.IsNullOrWhiteSpace())
Expand Down

0 comments on commit 9f37bee

Please sign in to comment.