Summary: | Adjust URL-Heuristic for wolphramalpha urls | ||
---|---|---|---|
Product: | [Applications] konversation | Reporter: | Johannes E. Krause <j.k> |
Component: | general | Assignee: | Konversation Developers <konversation-devel> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | NOR | ||
Version First Reported In: | 1.2.3 | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Johannes E. Krause
2010-06-01 17:12:31 UTC
commit 6b7e7ddb5ea24d6654f99701c4823b18abe3ea70 Author: Peter Simonsson <peter.simonsson@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+),$"); |