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

List:       licq-cvs
Subject:    [Licq-cvs] r4442 - trunk/qt-gui/src
From:       emostar () users ! sourceforge ! net
Date:       2006-06-09 14:44:55
Message-ID: 20060609144455.23769.qmail () mail ! thejon ! org
[Download RAW message or body]

Author: emostar
Date: 2006-06-09 23:44:54 +0900 (Fri, 09 Jun 2006)
New Revision: 4442

Modified:
   trunk/qt-gui/src/mlview3.cpp
Log:
Patch by Martin to allow # in URLs as well.


Modified: trunk/qt-gui/src/mlview3.cpp
===================================================================
--- trunk/qt-gui/src/mlview3.cpp	2006-06-07 18:20:48 UTC (rev 4441)
+++ trunk/qt-gui/src/mlview3.cpp	2006-06-09 14:44:54 UTC (rev 4442)
@@ -94,7 +94,7 @@
     int pos = 0;
     if (highlightURLs && (pos = text.find(reAHREF, pos)) == -1)
     {
-       QRegExp reURL("(\\b|^)((https?|ftp)://([-a-z0-9]+(:[-a-z0-9]+)?@)?[-a-z0-9.]+[-a-z0-9](:[0-9]+)?(/([-a-z0-9%{}|\\\\^~`;/?:@=&$_.+!*'(),]|\\[|\\])*)?)");
 +       QRegExp reURL("(\\b|^)((https?|ftp)://([-a-z0-9]+(:[-a-z0-9]+)?@)?[-a-z0-9.]+[-a-z0-9](:[0-9]+)?(/([-a-z0-9%{}|\\\\^~`;/?:@=&$_.+!*'(),#]|\\[|\\])*)?)");
  reURL.setMinimal(false);
        reURL.setCaseSensitive(false);
        pos = 0;



_______________________________________________
Licq-cvs mailing list
Licq-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/licq-cvs


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

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