Actual implementation of "internal static ReadOnlyMemory TrimStart(this ReadOnlyMemory memory)" method in MemoryExtensions.cs causes ArgumentOutOfRangeException if there is any whitespace character at the beginning of argument.
Last line should say:
return memory.Slice(index, span.Length - index);
instead of
return memory.Slice(index, span.Length);
Actual implementation of "internal static ReadOnlyMemory TrimStart(this ReadOnlyMemory memory)" method in MemoryExtensions.cs causes ArgumentOutOfRangeException if there is any whitespace character at the beginning of argument.
Last line should say:
return memory.Slice(index, span.Length - index);
instead of
return memory.Slice(index, span.Length);