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

highight tox:// in chat

This commit is contained in:
agilob 2014-11-06 16:38:33 +00:00
parent 186ce73455
commit a10f04eb27
No known key found for this signature in database
GPG Key ID: 34568050DBCCB997

View File

@ -33,7 +33,7 @@ QString MessageAction::getMessage(QString div)
message_ = toHtmlChars(message);
// detect urls
QRegExp exp("(?:\\b)(www\\.|http[s]?:\\/\\/|ftp:\\/\\/)\\S+");
QRegExp exp("(?:\\b)(www\\.|http[s]?:\\/\\/|ftp:\\/\\/|tox:\\/\\/)\\S+");
int offset = 0;
while ((offset = exp.indexIn(message_, offset)) != -1)
{