Linkify matrix uris
This commit is contained in:
parent
d6109b95fb
commit
95a603fd62
@ -408,6 +408,8 @@ utils::linkifyMessage(const QString &body)
|
|||||||
// Convert to valid XML.
|
// Convert to valid XML.
|
||||||
auto doc = body;
|
auto doc = body;
|
||||||
doc.replace(conf::strings::url_regex, conf::strings::url_html);
|
doc.replace(conf::strings::url_regex, conf::strings::url_html);
|
||||||
|
doc.replace(QRegularExpression("\\b(?<![\"'])(?>(matrix:[\\S]{5,}))(?![\"'])\\b"),
|
||||||
|
conf::strings::url_html);
|
||||||
|
|
||||||
return doc;
|
return doc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user