Skip to content

Commit

Permalink
tweak regexp for legacy viewer too
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Aug 20, 2024
1 parent 29d688c commit 5224cf7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,7 @@ PreparedHtml TextBrowserViewer::prepareLegacyHtmlForMessage(const QList<Message>
: message.m_contents;

static QRegularExpression img_tag_rgx(QSL("\\<img[^\\>]*src\\s*=\\s*[\"\']([^\"\']*)[\"\'][^\\>]*\\>"),
QRegularExpression::PatternOption::CaseInsensitiveOption |
QRegularExpression::PatternOption::InvertedGreedinessOption);
QRegularExpression::PatternOption::CaseInsensitiveOption);

// Extract all images links from article to be appended to end of article.
QRegularExpressionMatchIterator i = img_tag_rgx.globalMatch(html.m_html);
Expand Down

0 comments on commit 5224cf7

Please sign in to comment.