draconware-dev / SpanExtensions.Net

SpanExtensions.Net aims to make ReadOnlySpan<T> and Span<T> more accessible and overall better integrated into the .Net Ecosystem, by providing alternatives for many missing Extension Methods for Span<T>, ranging from string.Split() over Enumerable.Skip() and Enumerable.Take() to an improved ReadOnlySpan<T>.IndexOf().
MIT License
17 stars 5 forks source link

Fixed empty spans dropped at the end of enumeration #10

Closed Guiorgy closed 5 months ago

Guiorgy commented 5 months ago

If the last span in an enumeration was empty, it would be erroneously dropped.

Guiorgy commented 5 months ago

Wait, I accidentally targeted main. Can you change the base branch to dev, or should I recreate the PR? Nevermind, changed.

dragon7307 commented 5 months ago

Great, I'll look through it and be resolving the merge conflicts.

dragon7307 commented 5 months ago

Looks fine to me - merging it now!!