summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-04-19 16:35:06 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-04-19 16:35:06 +0200
commit95a603fd626050d58d85625d3dbb4b0092ca4c77 (patch)
treee8576d48b84e30112383d6fa58dfd659b326fa2d /src
parentEscape html in topics and show line breaks in the settings (diff)
downloadnheko-95a603fd626050d58d85625d3dbb4b0092ca4c77.tar.xz
Linkify matrix uris
Diffstat (limited to 'src')
-rw-r--r--src/Utils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp

index ca2d3adc..bc5b72cb 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp
@@ -408,6 +408,8 @@ utils::linkifyMessage(const QString &body) // Convert to valid XML. auto doc = body; doc.replace(conf::strings::url_regex, conf::strings::url_html); + doc.replace(QRegularExpression("\\b(?<![\"'])(?>(matrix:[\\S]{5,}))(?![\"'])\\b"), + conf::strings::url_html); return doc; }