Team:UT-Tokyo/Templates/BeginContent

From 2011.igem.org

(Difference between revisions)
Line 403: Line 403:
   // toUrl must start with '2011.igem.org/Team:UT-Tokyo'
   // toUrl must start with '2011.igem.org/Team:UT-Tokyo'
-
   var fullPageName = toUrl.match(/2011.igem.org\/(Team:UT-Tokyo.*)$/);
+
   var fullPageName = toUrl.match(/2011.igem.org\/(Team:UT-Tokyo.*)$/)[1];
   if (!fullPageName) {
   if (!fullPageName) {
     console.log('invalid url');
     console.log('invalid url');

Revision as of 09:57, 27 August 2011