MusixmatchCoverProvider: Use static QRegularExpression
This commit is contained in:
@@ -128,7 +128,8 @@ void MusixmatchCoverProvider::HandleSearchReply(QNetworkReply *reply, const int
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (content_json.contains(QRegularExpression(QStringLiteral("<[^>]*>")))) { // Make sure it's not HTML code.
|
static const QRegularExpression regex_html_tag(QStringLiteral("<[^>]*>"));
|
||||||
|
if (content_json.contains(regex_html_tag)) { // Make sure it's not HTML code.
|
||||||
emit SearchFinished(id, results);
|
emit SearchFinished(id, results);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user