Commit 26c6329c authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

wallpapers/potd: do not match colon in regex

Sometimes the author label does not contain a colon, for example,
on 20220813, the author field does not contain a colon.

BUG: 457823
FIXED-IN: 5.25.5
parent 3ad7c5bc
Pipeline #217736 passed with stage
in 2 minutes and 1 second
......@@ -50,7 +50,7 @@ void ApodProvider::pageRequestFinished(KJob *_job)
* <a href="">Elena Pinna</a>
const QRegularExpression infoRegEx(QStringLiteral("<center>.*?<b>(.+?)</b>.*?Credit.*?:.*?</b>(.+?)</center>"));
const QRegularExpression infoRegEx(QStringLiteral("<center>.*?<b>(.+?)</b>.*?Credit.*?</b>(.+?)</center>"));
const QRegularExpressionMatch match = infoRegEx.match(data);
if (match.hasMatch()) {
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