fix: Fixes missing CopyTo in FixHtmlFormattable (#1935)

This commit is contained in:
Reetus 2024-08-19 21:09:07 +07:00 committed by GitHub
parent 36c373b76a
commit 4c5947e654
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -237,6 +237,8 @@ public static class Utility
{
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())