Skip to content
Snippets Groups Projects
Verified Commit 95a603fd authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Linkify matrix uris

parent d6109b95
No related branches found
No related tags found
No related merge requests found
Pipeline #1024 passed
......@@ -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;
}
......
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