Browse Source

highight tox:// in chat

pull/649/head
agilob 11 years ago
parent
commit
a10f04eb27
No known key found for this signature in database
GPG Key ID: 34568050DBCCB997
  1. 2
      src/widget/tool/chatactions/messageaction.cpp

2
src/widget/tool/chatactions/messageaction.cpp

@ -33,7 +33,7 @@ QString MessageAction::getMessage(QString div) @@ -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)
{

Loading…
Cancel
Save