[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Konversation] 65c012b: Support urls of the type
From:       Peter Simonsson <peter.simonsson () gmail ! com>
Date:       2010-07-01 13:27:33
Message-ID: 20100701132733.6AD55BB5640 () projects ! kde ! org
[Download RAW message or body]

commit 65c012bd232fe37876a6dbfe2e087627985bbeaa
Author: Peter Simonsson <peter.simonsson@gmail.com>
Date:   Sat Jun 19 15:52:24 2004 +0000

    Support urls of the type ftp://user:password@123.456.789.1/
    
    svn path=/trunk/kdeextragear-2/konversation/; revision=321972

diff --git a/konversation/ircview.cpp b/konversation/ircview.cpp
index 8226983..8135551 100644
--- a/konversation/ircview.cpp
+++ b/konversation/ircview.cpp
@@ -317,12 +317,13 @@ QString IRCView::filter(const QString& line,const QString& defaultColor,const QS
 //  filteredLine=KStringHandler::tagURLs(filteredLine);
 
   QRegExp pattern("(((http://|https://|ftp://|nntp://|news://|gopher://|www\\.|ftp\\.)"
+                  "(([-_.%\\d\\w]*(:[-_.%\\d\\w]*)?@)|)"
                   // IP Address
                   "([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}|"
                   // Decimal IP address
                   "[0-9]{1,12}|"
                   // Standard host name
-                  "[a-z0-9][\\.@%a-z0-9_-]+\\.[a-z]{2,}"
+                  "[a-z0-9][\\.%a-z0-9_-]+\\.[a-z]{2,}"
                   // Port number, path to document
                   ")(:[0-9]{1,5})?(/[^)>\"\\s]*)?|"
                   // eDonkey2000 links need special treatment
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic