mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 23:34:10 +02:00
Fixed off-by-one with string split
This commit is contained in:
parent
bdd22c0154
commit
701abe3af7
1 changed files with 1 additions and 1 deletions
|
@ -2667,7 +2667,7 @@ namespace System
|
|||
|
||||
if (foundMatch)
|
||||
{
|
||||
if ((mMatchPos > mPos + 1) || (!mSplitOptions.HasFlag(StringSplitOptions.RemoveEmptyEntries)))
|
||||
if ((mMatchPos >= mPos + 1) || (!mSplitOptions.HasFlag(StringSplitOptions.RemoveEmptyEntries)))
|
||||
return true;
|
||||
mPos = mMatchPos + 1;
|
||||
if (mPos >= mStrLen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue