From 48f3fb7dcbf5ce990229114158f38098320ede97 Mon Sep 17 00:00:00 2001 From: Zetok Zalbavar Date: Sun, 3 Apr 2016 13:28:21 +0100 Subject: [PATCH] fix(chatform): regression in detecting `tox:` type IDs Introduced in d3434087495faeeaed324fc52d0f5634bc248567 / #3044. --- src/chatlog/chatmessage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chatlog/chatmessage.cpp b/src/chatlog/chatmessage.cpp index 3d06daa9f..c2a563b4f 100644 --- a/src/chatlog/chatmessage.cpp +++ b/src/chatlog/chatmessage.cpp @@ -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