Regex correction
Co-authored-by: TheKodeToad <TheKodeToad@proton.me> Signed-off-by: SabrePenguin <147069705+SabrePenguin@users.noreply.github.com>
This commit is contained in:
parent
6a49f513d8
commit
f43873a8ba
@ -215,7 +215,7 @@ QPair<QString, QString> StringUtils::splitFirst(const QString& s, const QRegular
|
|||||||
|
|
||||||
QString StringUtils::htmlListPatch(QString htmlStr)
|
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 pos = htmlStr.indexOf(match);
|
||||||
int imgPos, dist;
|
int imgPos, dist;
|
||||||
while (pos != -1) {
|
while (pos != -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user