Commit 7750e056 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add code for debugging containsExternalReferences. We need to improve it

parent 34ab26ce
......@@ -116,8 +116,10 @@ bool Util::containsExternalReferences(const QString &str, const QString &extraHe
httpsPos = str.indexOf(QLatin1String("\"https:"), httpsPos + 7, Qt::CaseInsensitive);
}
}
const bool containsReg = str.contains(QRegularExpression(QLatin1String("<img.*src=\"?https?:/.*>"), QRegularExpression::CaseInsensitiveOption));
//qDebug() << " str.contains " << containsReg;
QRegularExpressionMatch rmatch;
const bool containsReg = str.contains(QRegularExpression(QLatin1String("<img.*src=\"?https?:/.*>"), QRegularExpression::CaseInsensitiveOption), &rmatch);
//qDebug() << " str.contains " << containsReg << rmatch.captured(0);
return containsReg;
}
......
Supports Markdown
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