Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 91: Line 91:
}
}
-
function trim(str)
+
function trimStr(str)
{
{
-
return str.replace(/^\s+|\s+$/g, '') ;
+
return str.replace(/^\s+|\s+$/g, '');
}
}
Line 105: Line 105:
for (var i=0;i<topics.length;i++)
for (var i=0;i<topics.length;i++)
{
{
-
if (removeHTMLTags(topics[i].trim())==removeHTMLTags(title.trim())) return topics[i+1];
+
if (removeHTMLTags(trimStr(topics[i]))==removeHTMLTags(trimStr(title))) return topics[i+1];
}
}

Revision as of 00:21, 26 October 2008

Gallery Bricks Notebook Team Project Home