[Konversation-devel] [Bug 240366] Adjust URL-Heuristic for wolphramalpha urls

Peter Simonsson peter.simonsson at gmail.com
Fri Jul 16 21:59:50 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=240366


Peter Simonsson <peter.simonsson at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Peter Simonsson <peter simonsson gmail com>  2010-07-16 21:59:49 ---
commit 6b7e7ddb5ea24d6654f99701c4823b18abe3ea70
Author: Peter Simonsson <peter.simonsson at gmail.com>
Date:   Fri Jul 16 21:59:23 2010 +0200

    Fix wolframalpha urls.
    BUG:240366

diff --git a/src/common.cpp b/src/common.cpp
index 5785f6f..a103c6e 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -27,7 +27,7 @@ namespace Konversation
 {

     static QRegExp
colorRegExp("((\003([0-9]|0[0-9]|1[0-5])(,([0-9]|0[0-9]|1[0-5])|)|\017)|\x02|\x09|\x13|\x16|\x1f)");
-    static QRegExp
urlPattern("((www\\.(?!\\.)|(fish|irc|amarok|(f|sf|ht)tp(|s))://)(\\.?[\\d\\w/,\\':~\\?=;#@\\-\\+\\%\\*\\{\\}\\!\\(\\)\\[\\]]|&)+)|"
+    static QRegExp
urlPattern("((www\\.(?!\\.)|(fish|irc|amarok|(f|sf|ht)tp(|s))://)(\\.?[\\d\\w/,\\':~\\?=;#@\\-\\+\\%\\*\\{\\}\\!\\(\\)\\[\\]\\^]|&)+)|"
         "([-.\\d\\w]+@[-.\\d\\w]{2,}\\.[\\w]{2,})");
     static QRegExp tdlPattern("(.*)\\.(\\w+),$");

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Konversation-devel mailing list