Team:Warsaw/JSTest
From 2008.igem.org
(Difference between revisions)
Line 93: | Line 93: | ||
function trimStr(str) | function trimStr(str) | ||
{ | { | ||
- | + | ||
return str.replace(/^\s+|\s+$/g, ''); | return str.replace(/^\s+|\s+$/g, ''); | ||
} | } | ||
Line 111: | Line 111: | ||
var currtitle=removeHTMLTags(notags[3]); | var currtitle=removeHTMLTags(notags[3]); | ||
currtitle=trimStr(currtitle.replace('+',' ')); | currtitle=trimStr(currtitle.replace('+',' ')); | ||
- | + | alert ("C: "+currtitle+"\nT: "+title); | |
if (currtitle==title) | if (currtitle==title) | ||
{ | { |
Revision as of 09:31, 26 October 2008
|