diff options
author | Stuart Mumford <stuart@cadair.com> | 2021-06-25 15:44:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 15:44:15 +0100 |
commit | 7fab2925b4e3b712a8d78dad5481c9729f8133d2 (patch) | |
tree | f95870878bcb17d480c6940a6734d7c91ad28485 | |
parent | Update src/timeline/TimelineModel.cpp (diff) | |
download | nheko-7fab2925b4e3b712a8d78dad5481c9729f8133d2.tar.xz |
Apply suggestions from code review
-rw-r--r-- | src/timeline/TimelineModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index d77e4409..5f92aaae 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -534,7 +534,7 @@ TimelineModel::data(const mtx::events::collections::TimelineEvents &event, int r formattedBody_.replace(matchImgUri, "\\1 src=\"image://mxcImage/\\2\"\\3"); // Same regex but for single quotes around the src const static QRegularExpression matchImgUri2( - "(<img [^>]*)src=\'mxc://([^\']*)\'([^>]*>)"); + "(<img [^>]*)src=\'mxc://([^\']*)\'([^>]*>)"); formattedBody_.replace(matchImgUri2, "\\1 src=\"image://mxcImage/\\2\"\\3"); const static QRegularExpression matchEmoticonHeight( "(<img data-mx-emoticon [^>]*)height=\"([^\"]*)\"([^>]*>)"); |