Skip to content
Snippets Groups Projects
Commit 8b017c69 authored by jonymt's avatar jonymt
Browse files

[*] changed regexp

parent e9c9cc2f
No related branches found
No related tags found
1 merge request!12Bugs 2496
Pipeline #757 passed with stage
in 3 minutes and 4 seconds
......@@ -25,12 +25,12 @@ void DapChainHistoryHandler::onRequestNewHistory(const QMap<QString, QVariant>&
process.start(QString(CLI_PATH) + " tx_history -net private -chain gdb -addr " + wallets.at(i).toString());
process.waitForFinished(-1);
QString result = QString::fromStdString(process.readAll().toStdString());
QByteArray result = process.readAll();
if(!result.isEmpty())
{
QRegExp rx("(\\w{3}\\s\\w{3}\\s\\d+\\s\\d{1,2}:\\d{2}:\\d{2}\\s\\d{4})\\s+"
"(\\w+)\\s(\\d+)\\s(\\w+)\\s\\w+\\s+(\\w+)");
QRegExp rx("(\\w{3} \\w{3} \\d+ \\d{1,2}:\\d{2}:\\d{2} \\d{4})\\s+"
"(\\w+) (\\d+) (\\w+) \\w+ (\\w+)");
int pos = 0;
while ((pos = rx.indexIn(result, pos)) != -1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment