[Phpfreechat-svn] SF.net SVN: phpfreechat:[1253] trunk/data/public/js/pfcclient.js
Status: Beta
Brought to you by:
kerphi
|
From: <ke...@us...> - 2008-11-10 09:40:18
|
Revision: 1253
http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1253&view=rev
Author: kerphi
Date: 2008-11-10 09:40:09 +0000 (Mon, 10 Nov 2008)
Log Message:
-----------
Bug fix: fix a parsing problem with bbcode [color] tag on konqueror browser (sourceforge patch #2234430)
Modified Paths:
--------------
trunk/data/public/js/pfcclient.js
Modified: trunk/data/public/js/pfcclient.js
===================================================================
--- trunk/data/public/js/pfcclient.js 2008-09-12 12:26:17 UTC (rev 1252)
+++ trunk/data/public/js/pfcclient.js 2008-11-10 09:40:09 UTC (rev 1253)
@@ -1524,11 +1524,11 @@
rx = new RegExp('\\[email=([A-z0-9][\\w.-]*@[A-z0-9][\\w\\-\\.]+\\.[A-z0-9]{2,6})\\](.+?)\\[\/email\\]','ig');
msg = msg.replace(rx, '<a href="mailto: $1">$2</a>');
*/
- rx = new RegExp('\\[color=([a-zA-Z]+|\\#?[0-9a-fA-F]{6}|\\#?[0-9a-fA-F]{3})](.+?)\\[\/color\\]','ig');
+ rx = new RegExp('\\[color=([a-zA-Z]+|\\#?[0-9a-fA-F]{6}|\\#?[0-9a-fA-F]{3})\\](.+?)\\[\/color\\]','ig');
msg = msg.replace(rx, '<span style="color: $1">$2</span>');
// parse bbcode colors twice because the current_text_color is a bbcolor
// so it's possible to have a bbcode color imbrication
- rx = new RegExp('\\[color=([a-zA-Z]+|\\#?[0-9a-fA-F]{6}|\\#?[0-9a-fA-F]{3})](.+?)\\[\/color\\]','ig');
+ rx = new RegExp('\\[color=([a-zA-Z]+|\\#?[0-9a-fA-F]{6}|\\#?[0-9a-fA-F]{3})\\](.+?)\\[\/color\\]','ig');
msg = msg.replace(rx, '<span style="color: $1">$2</span>');
// try to parse smileys
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|