Commit 2c379a85 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix regular api usage

parent 4190f376
...@@ -693,7 +693,7 @@ void TemplateParserJob::slotExtractInfoDone(const TemplateParserExtractHtmlInfoR ...@@ -693,7 +693,7 @@ void TemplateParserJob::slotExtractInfoDone(const TemplateParserExtractHtmlInfoR
// something wrong // something wrong
i += strlen("HEADER( "); i += strlen("HEADER( ");
} else { } else {
i += match.capturedLength(1) + 10; //lenght of HEADER(<space> + <space>) i += match.capturedLength(0); //lenght of HEADER(<space> + <space>)
const QString hdr = match.captured(1).trimmed(); const QString hdr = match.captured(1).trimmed();
QString str; QString str;
if (auto hrdMsgOrigin = d->mOrigMsg->headerByType(hdr.toLocal8Bit().constData())) { if (auto hrdMsgOrigin = d->mOrigMsg->headerByType(hdr.toLocal8Bit().constData())) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment