Apply suggestions from code review

Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
Co-authored-by: Vladimir Golovnev <glassez@yandex.ru>
This commit is contained in:
Zentino 2024-12-18 14:38:53 +08:00
commit 43a5547828
No known key found for this signature in database
GPG key ID: ADEEC991C0DEE42A

View file

@ -56,8 +56,6 @@
namespace
{
void convertRelativeUrlToAbsolute(QString &html, const QString &baseUrl);
void convertRelativeUrlToAbsolute(QString &html, const QString &baseUrl)
{
const QRegularExpression rx {uR"(((<a\s+[^>]*?href|<img\s+[^>]*?src)\s*=\s*["'])((https?|ftp):)?(\/\/[^\/]*)?(\/?[^\/"].*?)(["']))"_s