From 7fab2925b4e3b712a8d78dad5481c9729f8133d2 Mon Sep 17 00:00:00 2001 From: Stuart Mumford Date: Fri, 25 Jun 2021 15:44:15 +0100 Subject: [PATCH] Apply suggestions from code review --- src/timeline/TimelineModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( - "(]*)src=\'mxc://([^\']*)\'([^>]*>)"); + "(]*)src=\'mxc://([^\']*)\'([^>]*>)"); formattedBody_.replace(matchImgUri2, "\\1 src=\"image://mxcImage/\\2\"\\3"); const static QRegularExpression matchEmoticonHeight( "(]*)height=\"([^\"]*)\"([^>]*>)");