Fix III host code

This commit is contained in:
Simon Kornblith 2013-01-18 18:58:11 -05:00
parent f24091626d
commit a5dc9d9647

View file

@ -222,7 +222,7 @@ Zotero.Translators = new function() {
if(m) {
// First, drop the 0- if it exists (this is an III invention)
var host = m[2];
if(host.substr(0, 2) === "0-") host = substr(2);
if(host.substr(0, 2) === "0-") host = host.substr(2);
var hostnames = host.split(".");
for(var i=1; i<hostnames.length-2; i++) {
if(TLDS[hostnames[i].toLowerCase()]) {