[Konversation-devel] [Bug 97350] color in channel name has strange
effects
ismail cartman donmez
ismail at kde.org.tr
Tue Jan 18 19:13:14 CET 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=97350
ismail kde org tr changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From ismail kde org tr 2005-01-18 19:13 -------
CVS commit by cartman:
Escape colors in #channel. Damned mirc lamers! Regexp by JohnFlux(thanks!) edited slightly by me.
BUG:97350
M +8 -1 common.cpp 1.16
--- kdeextragear-2/konversation/konversation/common.cpp #1.15:1.16
@ -50,4 +50,11 @ QString tagURLs(const QString& text, con
channelPattern.setCaseSensitive(false);
+ // See http://bugs.kde.org/show_bug.cgi?id=97350
+ QRegExp colorRegex=QRegExp("#<font color=\"#\\S+\">(.*)</font>");
+ colorRegex.setMinimal(true);
+ colorRegex.setCaseSensitive(false);
+ colorRegex.search(filteredLine);
+ filteredLine.replace(colorRegex,"#"+colorRegex.cap(1));
+
while(channelPattern.search(filteredLine, pos) != -1) {
More information about the Konversation-devel
mailing list