summary refs log tree commit diff
diff options
context:
space:
mode:
authorStuart Mumford <stuart@cadair.com>2021-06-25 15:21:04 +0100
committerGitHub <noreply@github.com>2021-06-25 15:21:04 +0100
commit9194b87bdc1674506706c75f3482ea838d6afe50 (patch)
tree52053cbaf12a4c48f7a9cb4473adf2d6a00677d9
parentAdd another regex to match inline img tags using single quotes (diff)
downloadnheko-9194b87bdc1674506706c75f3482ea838d6afe50.tar.xz
Update src/timeline/TimelineModel.cpp
-rw-r--r--src/timeline/TimelineModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp

index 5d2d5a68..d77e4409 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=\"([^\"]*)\"([^>]*>)");