fix: Fixes missing CopyTo in FixHtmlFormattable (#1935)
This commit is contained in:
parent
36c373b76a
commit
4c5947e654
1 changed files with 2 additions and 0 deletions
|
|
@ -237,6 +237,8 @@ public static class Utility
|
||||||
{
|
{
|
||||||
var chars = STArrayPool<char>.Shared.Rent(str.Length);
|
var chars = STArrayPool<char>.Shared.Rent(str.Length);
|
||||||
var span = chars.AsSpan(0, str.Length);
|
var span = chars.AsSpan(0, str.Length);
|
||||||
|
str.CopyTo(span);
|
||||||
|
|
||||||
var formattable = new PooledArraySpanFormattable(chars, str.Length);
|
var formattable = new PooledArraySpanFormattable(chars, str.Length);
|
||||||
|
|
||||||
if (!str.IsNullOrWhiteSpace())
|
if (!str.IsNullOrWhiteSpace())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue