Skip to content
Snippets Groups Projects
Unverified Commit 9194b87b authored by Stuart Mumford's avatar Stuart Mumford Committed by GitHub
Browse files

Update src/timeline/TimelineModel.cpp

parent d60ea38c
No related branches found
No related tags found
No related merge requests found
Pipeline #1246 failed
......@@ -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=\"([^\"]*)\"([^>]*>)");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment