Fix ExtractBetweenBrackets. It was assumed that the string starts with a bracket, be a little bit more lenient now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40974 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -37,7 +37,7 @@ IMAPParser::ExtractBetweenBrackets(const BString& string, const char* start,
|
|||||||
int32 startPos = outString.FindFirst(start);
|
int32 startPos = outString.FindFirst(start);
|
||||||
if (startPos < 0)
|
if (startPos < 0)
|
||||||
return "";
|
return "";
|
||||||
outString.Remove(startPos, 1);
|
outString.Remove(0, startPos + 1);
|
||||||
|
|
||||||
int32 searchPos = 0;
|
int32 searchPos = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user