Regex correction

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: SabrePenguin <147069705+SabrePenguin@users.noreply.github.com>
This commit is contained in:
SabrePenguin 2024-05-01 12:49:34 -04:00 committed by GitHub
parent 814f84efab
commit ce873e4a0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -215,7 +215,7 @@ QPair<QString, QString> StringUtils::splitFirst(const QString& s, const QRegular
QString StringUtils::htmlListPatch(QString htmlStr)
{
QRegularExpression match("<w*/w*ulw*>|<w*ulw*/w*>");
QRegularExpression match("<\\s/\\s*ul\\s*>");
int pos = htmlStr.indexOf(match);
int imgPos, dist;
while (pos != -1) {