mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 07:44:09 +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 (foundMatch)
|
||||||
{
|
{
|
||||||
if ((mMatchPos > mPos + 1) || (!mSplitOptions.HasFlag(StringSplitOptions.RemoveEmptyEntries)))
|
if ((mMatchPos >= mPos + 1) || (!mSplitOptions.HasFlag(StringSplitOptions.RemoveEmptyEntries)))
|
||||||
return true;
|
return true;
|
||||||
mPos = mMatchPos + 1;
|
mPos = mMatchPos + 1;
|
||||||
if (mPos >= mStrLen)
|
if (mPos >= mStrLen)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue