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

Merge pull request #3095

Zetok Zalbavar (1):
      fix(chatform): regression in detecting `tox:` type IDs
This commit is contained in:
sudden6 2016-04-04 23:41:41 +02:00
commit 03a1f826cb
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -250,7 +250,7 @@ QString ChatMessage::detectAnchors(const QString &str)
// http://ONEORMOREALHPA-DIGIT
"\\w+\\S+)" // any other character, lets domains and other
"|(?:\\b)(file:///)([\\S| ]*)" //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)(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