Apply fix on Parsers Conditions for && Cleaning on last index ...
This commit is contained in:
@@ -756,6 +756,33 @@ struct XCHStartegyConditionsParser
|
||||
"||" + "\n" +
|
||||
"//";
|
||||
|
||||
//
|
||||
string query = "&&";
|
||||
int andIndexes[];
|
||||
int andIndexesCount = FindIndexes(
|
||||
query,
|
||||
result,
|
||||
andIndexes //
|
||||
);
|
||||
if (IsValidSize(andIndexesCount)) {
|
||||
//
|
||||
int lastAndIndex = andIndexes[ArraySize(andIndexes) - 1];
|
||||
|
||||
//
|
||||
string beforeStr = StringSubstr(
|
||||
result,
|
||||
0,
|
||||
lastAndIndex //
|
||||
);
|
||||
string afterStr = StringSubstr(
|
||||
result,
|
||||
lastAndIndex + StringLen(query)
|
||||
);
|
||||
|
||||
//
|
||||
result = beforeStr + afterStr;
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user