Commit 7230692f authored by George Dietrich's avatar George Dietrich Committed by Yunhe Guo
Browse files

Better future proof the image URL pattern

parent 1cfbffb7
......@@ -42,7 +42,7 @@ void NatGeoProvider::pageRequestFinished(KJob *_job)
QString url;
re.setPattern(QStringLiteral("<meta.+property=\"og:image\"\\s+content=\"(.*?)\".*/>"));
re.setPattern(QStringLiteral("<meta.*property=\"og:image\".*?content=\"(.*?)\".*/>"));
for (int i = 0; i < lines.size(); i++) {
QRegularExpressionMatch match = re.match(lines.at(i));
......
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