Skip to content
Snippets Groups Projects

Bugs 2582

Merged Evgenii Tagiltsev requested to merge bugs-2582 into master
2 files
+ 13
6
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -29,14 +29,20 @@ void DapChainHistoryHandler::onRequestNewHistory(const QMap<QString, QVariant>&
if(!result.isEmpty())
{
QRegExp rx("((\\w{3}\\s+){2}\\d{1,2}\\s+(\\d{1,2}:*){3}\\s+\\d{4})\\s+(\\w+)\\s+(\\d+)\\s(\\w+)\\s+\\w+\\s+([\\w\\d]+)");
int pos = 0;
while ((pos = rx.indexIn(result, pos)) != -1)
QRegularExpression regular("((\\w{3}\\s+){2}\\d{1,2}\\s+(\\d{1,2}:*){3}\\s+\\d{4})\\s+(\\w+)\\s+(\\d+)\\s(\\w+)\\s+\\w+\\s+([\\w\\d]+)", QRegularExpression::MultilineOption);
QRegularExpressionMatchIterator matchItr = regular.globalMatch(result);
while (matchItr.hasNext())
{
QStringList dataItem = QStringList() << rx.cap(1) << QString::number(DapTransactionStatusConvertor::getStatusByShort(rx.cap(4))) << rx.cap(5) << rx.cap(6) << rx.cap(7) << wallets.at(i).toString();
QRegularExpressionMatch match = matchItr.next();
QStringList dataItem = QStringList()
<< match.captured(1)
<< QString::number(DapTransactionStatusConvertor::getStatusByShort(match.captured(4)))
<< match.captured(5)
<< match.captured(6)
<< match.captured(7)
<< wallets.at(i).toString();
data << dataItem;
pos += rx.matchedLength();
}
}
}
Loading