1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

add mail link support

fix #2318
This commit is contained in:
PKev 2015-09-29 15:33:26 +03:00
parent a2dd254aee
commit 381e291dac

View File

@ -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