[Bbs2ch-cvs 425] [407] [04_BRANCH] まちBBS の HTML 変更に対応

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 3月 12日 (水) 22:54:56 JST


Revision: 407
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=407
Author:   flyson
Date:     2008-03-12 22:54:56 +0900 (Wed, 12 Mar 2008)

Log Message:
-----------
[04_BRANCH] まちBBS の HTML 変更に対応

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-03-12 13:54:26 UTC (rev 406)
+++ branches/bbs2chreader/04_BRANCH/chrome/content/bbs2chreader/server/thread.js	2008-03-12 13:54:56 UTC (rev 407)
@@ -848,10 +848,13 @@
 	        // ƒƒbƒZ[ƒW•”•ª‚ª“ñs‚É•ª‚©‚ê‚Ä‚¢‚é‚̂ňês‚É‚·‚é
 	    var datLines = aResponse.replace(/\n \]\<\/font\>/gm, " ]</font>");
 	    datLines = datLines.split("\n");
+
 	        // ƒƒbƒZ[ƒW‚ƃ^ƒCƒgƒ‹ˆÈŠO‚̍s‚ðíœ
+	    var reg = /^<(?:title>|dt>\d)/;
 	    datLines = datLines.filter(function(aElement, aIndex, aArray){
-	        return (aElement.match(/^<ti|dt/));
+	        return reg.test(aElement);
 	    });
+
 	        // ”z—ñ‚̈ê‚–ڂ̓^ƒCƒgƒ‹
 	    var datTitle = datLines.shift().replace(/<\/?title>/g, "");
 


bbs2ch-cvs メーリングリストの案内
Back to archive index