mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 00:53:55 -07:00
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 @
|
// search for the first [ or @
|
||||||
bracketFirstIndex = message.indexOf('[');
|
bracketFirstIndex = message.indexOf('[');
|
||||||
mentionFirstIndex = mentionEnabled ? message.indexOf('@') : -1;
|
mentionFirstIndex = mentionEnabled ? message.indexOf('@') : -1;
|
||||||
urlFirstIndex = message.indexOf("https://");
|
urlFirstIndex = message.indexOf(QRegExp("https?://|www."));
|
||||||
if(bracketFirstIndex == -1) {
|
if(bracketFirstIndex == -1) {
|
||||||
if(mentionFirstIndex == -1) {
|
if(mentionFirstIndex == -1) {
|
||||||
if (urlFirstIndex == -1) {
|
if (urlFirstIndex == -1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue