},
/* Main function for adding all the links for the menu popup */
- _reg_tv2: /^https?:\/\/([^/.]*)?(\.([^/]*?))?(\.(robot|opdatering|template)\.?)?(\.(php4|php5)\.?)?(\.((test3?|snapshot3?|stage))\.)?tv2\.dk((\/[^#\?]*).*)?$/,
- _reg_branchuser: /(([^.]*?)\.)?([^.]*)/,
+ _reg_tv2: /^https?:\/\/([^/.]*)?([^/]*?)(\.(robot|opdatering|template)\.?)?(\.(php4|php5)\.?)?(\.((test3?|snapshot3?|stage))\.)?tv2\.dk((\/[^#\?]*).*)?$/,
+ _reg_branchuser: /^\.(([^.]*?)\.)?([^.]*)/,
_reg_php: /^(.*\.php)/,
_reg_nodeid: /([0-9]{2,})/g,
_reg_i2files: /\/([0-9]+)-/,
if (tv2 && !fromgitweb) {
var skip_treenodes = false;
var tv2_sitename = tv2[1];
- var tv2_branchuser = tv2[3];
- var tv2_sitetype = tv2[5];
- var tv2_apptype = tv2[7]; // php4 or php5
- var tv2_testsite = tv2[9];
- var tv2_testtype = tv2[10]; /* no 3 */
- var tv2_uri = tv2[11];
- var tv2_uriOnly = tv2[12]; // no parameters, anchers
+ var tv2_branchuser = tv2[2];
+ var tv2_sitetype = tv2[4];
+ var tv2_apptype = tv2[6]; // php4 or php5
+ var tv2_testsite = tv2[8];
+ var tv2_testtype = tv2[9]; /* no 3 */
+ var tv2_uri = tv2[10];
+ var tv2_uriOnly = tv2[11]; // no parameters, anchers
// Strip -dyn and -static
if (tv2_sitename) tv2_sitename = tv2_sitename.replace(/-(dyn|static)$/, '');
tv2_user = bc[3];
}
} else { // we do not have usernames on snapshot/stage, so this is the branch
- tv2_branch = tv2_branchuser;
+ tv2_branch = tv2_branchuser.replace(/^\./, '');
}
}