mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Apply suggestions from code review
This commit is contained in:
parent
9194b87bdc
commit
7fab2925b4
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,7 @@ TimelineModel::data(const mtx::events::collections::TimelineEvents &event, int r
|
||||||
formattedBody_.replace(matchImgUri, "\\1 src=\"image://mxcImage/\\2\"\\3");
|
formattedBody_.replace(matchImgUri, "\\1 src=\"image://mxcImage/\\2\"\\3");
|
||||||
// Same regex but for single quotes around the src
|
// Same regex but for single quotes around the src
|
||||||
const static QRegularExpression matchImgUri2(
|
const static QRegularExpression matchImgUri2(
|
||||||
"(<img [^>]*)src=\'mxc://([^\']*)\'([^>]*>)");
|
"(<img [^>]*)src=\'mxc://([^\']*)\'([^>]*>)");
|
||||||
formattedBody_.replace(matchImgUri2, "\\1 src=\"image://mxcImage/\\2\"\\3");
|
formattedBody_.replace(matchImgUri2, "\\1 src=\"image://mxcImage/\\2\"\\3");
|
||||||
const static QRegularExpression matchEmoticonHeight(
|
const static QRegularExpression matchEmoticonHeight(
|
||||||
"(<img data-mx-emoticon [^>]*)height=\"([^\"]*)\"([^>]*>)");
|
"(<img data-mx-emoticon [^>]*)height=\"([^\"]*)\"([^>]*>)");
|
||||||
|
|
Loading…
Reference in a new issue