MusixmatchCoverProvider: Use static QRegularExpression

This commit is contained in:
Jonas Kvinge 2024-08-24 17:27:05 +02:00
parent d230dd7365
commit e8471bcc66
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ void MusixmatchCoverProvider::HandleSearchReply(QNetworkReply *reply, const int
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);
return;
}