svnno****@sourc*****
svnno****@sourc*****
2008年 2月 16日 (土) 18:22:57 JST
Revision: 373 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=373 Author: flyson Date: 2008-02-16 18:22:56 +0900 (Sat, 16 Feb 2008) Log Message: ----------- [04_BRANCH] æ£è¦è¡¨ç¾ãã§ããã ãè¡ããªãããã«ãã Modified Paths: -------------- branches/bbs2chreader/04_BRANCH/chrome/content/bbs2chreader/server/thread.js -------------- next part -------------- Modified: branches/bbs2chreader/04_BRANCH/chrome/content/bbs2chreader/server/thread.js =================================================================== --- branches/bbs2chreader/04_BRANCH/chrome/content/bbs2chreader/server/thread.js 2008-02-16 09:17:31 UTC (rev 372) +++ branches/bbs2chreader/04_BRANCH/chrome/content/bbs2chreader/server/thread.js 2008-02-16 09:22:56 UTC (rev 373) @@ -315,21 +315,23 @@ } // resDate ð DATEABeID ɪ - if(resDate.match(/(.+)BE:([^ ]+)/)){ + if(resDate.indexOf("BE:")!=-1 && resDate.match(/(.+)BE:([^ ]+)/)){ resDate = RegExp.$1; resBeID = RegExp.$2; } // resDate ð DATE Æ ID ɪ - if(resDate.match(/(.+)ID:(.+)/)){ + if(resDate.indexOf("ID:")!=-1 && resDate.match(/(.+)ID:(.+)/)){ resDate = RegExp.$1; resID = RegExp.$2; } + /* // resDate É IP ªÜÜêÄ¢éêÍ IP ð ID Ƶĵ¤ if(resDate.match(/(.+)M³:(.+)/)){ resDate = RegExp.$1; resID = RegExp.$2; } + */ if(resBeID){ var regBeID = /^(\d+)/; @@ -373,8 +375,10 @@ } // ÊíN - var regUrlLink = /(h?ttp)(s)?\:([\-_\.\!\~\*\'\(\)a-zA-Z0-9\;\/\?\:\@\&\=\+\$\,\%\#]+)/g; - resMes = resMes.replace(regUrlLink, '<a href="http$2:$3" class="outLink">$1$2:$3</a>'); + if(resMes.indexOf("ttp")!=-1){ + var regUrlLink = /(h?ttp)(s)?\:([\-_\.\!\~\*\'\(\)a-zA-Z0-9\;\/\?\:\@\&\=\+\$\,\%\#]+)/g; + resMes = resMes.replace(regUrlLink, '<a href="http$2:$3" class="outLink">$1$2:$3</a>'); + } // XID var regResID = / (ID:)([0-9a-z\+\/]+)/ig; @@ -671,17 +675,12 @@ } } + // ÊíN + if(resMes.indexOf("ttp")!=-1){ + var regUrlLink = /(h?ttp)(s)?\:([\-_\.\!\~\*\'\(\)a-zA-Z0-9\;\/\?\:\@\&\=\+\$\,\%\#]+)/g; + resMes = resMes.replace(regUrlLink, '<a href="http$2:$3" class="outLink">$1$2:$3</a>'); + } - - - - - - - // ÊíN - var regUrlLink = /(h?ttp)(s)?\:([\-_\.\!\~\*\'\(\)a-zA-Z0-9\;\/\?\:\@\&\=\+\$\,\%\#]+)/g; - resMes = resMes.replace(regUrlLink, '<a href="http$2:$3" class="outLink">$1$2:$3</a>'); - // XbhÌ^Cgª©Â©Á½Æ«Í HTML wb_ðÇÁµÄé if(!this._headerResponded && resArray[5]!= ""){ this._headerResponded = true;