diff --git a/cockatrice/src/chatview.cpp b/cockatrice/src/chatview.cpp index 692baf94..c11f2d1c 100644 --- a/cockatrice/src/chatview.cpp +++ b/cockatrice/src/chatview.cpp @@ -168,7 +168,7 @@ void ChatView::appendMessage(QString message, QString sender, UserLevelFlags use // search for the first [ or @ bracketFirstIndex = message.indexOf('['); mentionFirstIndex = mentionEnabled ? message.indexOf('@') : -1; - urlFirstIndex = message.indexOf("https://"); + urlFirstIndex = message.indexOf(QRegExp("https?://|www.")); if(bracketFirstIndex == -1) { if(mentionFirstIndex == -1) { if (urlFirstIndex == -1) {