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 Trial97
parent 6a49f513d8
commit f43873a8ba
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

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) {