Team:Warsaw/JSTest
From 2008.igem.org
(Difference between revisions)
Line 91: | Line 91: | ||
} | } | ||
- | function | + | 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] | + | if (removeHTMLTags(trimStr(topics[i]))==removeHTMLTags(trimStr(title))) return topics[i+1]; |
} | } | ||
Revision as of 00:21, 26 October 2008
|