Can now use more url types
Can now use http:// https:// www.
This commit is contained in:
parent
9ce3aecd38
commit
af29d4529c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue