rem: var match = url.match(/.*:\/\/([^\/:]*)/); 
add: match = url.match(/.*:\/\/([^\/:]*)/); 
context: function historyOnSelect(event){    dump("History selection has changed..\n");    // every time selection changes, save the last hostname    gLastHostname = "";    gLastDomain = "";    var selection = gHistoryTree.selectedItems;    if (selection && selection.length > 0) {        var url = selection[0].id;        // matches scheme://(hostname)...        var match = url.match(/.*:\/\/([^\/:]*)/);                if (match && match.length>1)            gLastHostname = match[1];    }    if (gLastHostname) {        // matches the last foo.bar in foo.bar or baz.foo.bar        var match = gLastHostname.match(/([^.]+\.[^.]+$)/);        if (match)            gLastDomain = match[1];    }    document.commandDispatcher.updateCommands("select");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/32154a9dc1474efc5e42464ace2f28035a9a2aeb/history.js/buggy/xpfe/components/history/resources/history.js