Linkify matrix uris

pull/552/head
Nicolas Werner 4 years ago
parent d6109b95fb
commit 95a603fd62
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      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;
}

Loading…
Cancel
Save