Browse Source

Merge remote-tracking branch 'PKEv/add_mail_link_support'

pull/2325/head
agilob 10 years ago
parent
commit
d65f54cc81
No known key found for this signature in database
GPG Key ID: 296F0B764741106C
  1. 1
      src/chatlog/chatmessage.cpp

1
src/chatlog/chatmessage.cpp

@ -186,6 +186,7 @@ QString ChatMessage::detectAnchors(const QString &str) @@ -186,6 +186,7 @@ QString ChatMessage::detectAnchors(const QString &str)
"\\w+\\S+)" // any other character, lets domains and other
"|(?:\\b)(file:///.*$)" //link to a local file, valid until the end of the line
"|(?:\\b)(tox:[a-zA-Z\\d]{76}$)" //link with full user address
"|(?:\\b)(mailto:\\S+@\\S+\\.\\S+)" //@mail link
"|(?:\\b)(tox:\\S+@\\S+)"); // starts with `tox` then : and only alpha-digits till the end
// also accepts tox:agilob@net as simplified TOX ID
//support for multi-line text

Loading…
Cancel
Save