1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 15:46:05 +02:00

Slightly improve StringEnumerator HasMore

This commit is contained in:
disarray2077 2022-11-24 18:59:18 -03:00 committed by GitHub
parent c52f3a247e
commit 7ebf233882
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3053,7 +3053,7 @@ namespace System
{ {
get get
{ {
return mMatchPos < mStrLen; return mMatchPos < mStrLen && (!mSplitOptions.HasFlag(StringSplitOptions.RemoveEmptyEntries) || mStrLen != 0);
} }
} }
@ -3216,7 +3216,7 @@ namespace System
{ {
get get
{ {
return mMatchPos < mStrLen; return mMatchPos < mStrLen && (!mSplitOptions.HasFlag(StringSplitOptions.RemoveEmptyEntries) || mStrLen != 0);
} }
} }