Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 110: Line 110:
var currtitle=removeHTMLTags(notags[3]);
var currtitle=removeHTMLTags(notags[3]);
-
currtitle=currtitle.replace("+"," ");
+
currtitle=currtitle.replace('+',' ');
alert ("C: "+currtitle+"\nT: "+title);
alert ("C: "+currtitle+"\nT: "+title);
-
if (currtitle.search(title)>0)  
+
if (currtitle==title)  
{
{
if (i+1<titles.length) return ans.substring(ans.indexOf(titles[i]),ans.indexOf(titles[i+1]));
if (i+1<titles.length) return ans.substring(ans.indexOf(titles[i]),ans.indexOf(titles[i+1]));

Revision as of 01:51, 26 October 2008

Gallery Bricks Notebook Team Project Home