Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 93: Line 93:
function trimStr(str)
function trimStr(str)
{
{
-
if (str==undefined) return "";
+
//if (str==undefined) return "";
return str.replace(/^\s+|\s+$/g, '');
return str.replace(/^\s+|\s+$/g, '');
}
}
Line 99: Line 99:
function trimContents(ans, title)
function trimContents(ans, title)
{
{
-
//h3=new RegExp(/<h3.*>(.*)<\/h3>/i);
+
h3=new RegExp(/<h3.*>(.*)<\/h3>/i);
-
h3=new RegExp(/<h3.*>((?:.|\n)*)<\/h3>/i);
+
var topics=ans.split(h3);
var topics=ans.split(h3);

Revision as of 01:05, 26 October 2008

Gallery Bricks Notebook Team Project Home