[Phpfreechat-svn] SF.net SVN: phpfreechat: [981] trunk/data/public/js/pfcclient.js
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-02-28 17:21:51
|
Revision: 981 http://svn.sourceforge.net/phpfreechat/?rev=981&view=rev Author: kerphi Date: 2007-02-28 09:21:49 -0800 (Wed, 28 Feb 2007) Log Message: ----------- [en] Bug fix: URL's with a comma does not get recognized as a link (sf bug 1649431) [fr] Bug fix : les urls avec une virgule n'?\195?\169taient pas reconnues (sf bug 1649431) Modified Paths: -------------- trunk/data/public/js/pfcclient.js Modified: trunk/data/public/js/pfcclient.js =================================================================== --- trunk/data/public/js/pfcclient.js 2007-02-27 14:23:54 UTC (rev 980) +++ trunk/data/public/js/pfcclient.js 2007-02-28 17:21:49 UTC (rev 981) @@ -1154,7 +1154,7 @@ var rx = null; // parse urls - var rx_url = new RegExp('(^|[^\\"])([a-z]+\:\/\/[a-z0-9.\\~\\/\\?\\=\\&\\-\\_\\#:;%]*)([^\\"]|$)','ig'); + var rx_url = new RegExp('(^|[^\\"])([a-z]+\:\/\/[a-z0-9.\\~\\/\\?\\=\\&\\-\\_\\#:;%,]*[a-z0-9\\/\\?\\=\\&\\-\\_\\#])([^\\"]|$)','ig'); var ttt = msg.split(rx_url); if (ttt.length > 1 && !navigator.appName.match("Explorer|Konqueror") && This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |