rem: if (RE[i] == "") continue;  RE[i] = new RegExp(RE[i], "i"); 
add: RE[i] = new RegExp(RE[i], "i"); 
context: function doFind() {    var searchTree = document.getElementById("help-search-tree");    var findText = document.getElementById("findText");    // clear any previous results.    clearDatabases(searchTree.database);    // split search string into separate terms and compile into regexp's    RE = findText.value.split(/\s+/);    for (var i=0; i < RE.length; ++i) {        if (RE[i] == "")            continue;        RE[i] = new RegExp(RE[i], "i");    }    emptySearch = true;    // search TOC    var resultsDS = Components.classes["@mozilla.org/rdf/datasource;1?name=in-memory-datasource"]        .createInstance(Components.interfaces.nsIRDFDataSource);    var tree = helpTocPanel;    var sourceDS = tree.database;    doFindOnDatasource(resultsDS, sourceDS, RDF_ROOT, 0);    // search glossary.    tree = helpGlossaryPanel;    sourceDS = tree.database;    // If the glossary has never been displayed this will be null (sigh!).    if (!sourceDS)        sourceDS = loadCompositeDS(tree.datasources);    doFindOnDatasource(resultsDS, sourceDS, RDF_ROOT, 0);    // search index    tree = helpIndexPanel;    sourceDS = tree.database;    //If the index has never been displayed this will be null    if (!sourceDS)      sourceDS = loadCompositeDS(tree.datasources);    doFindOnDatasource(resultsDS, sourceDS, RDF_ROOT, 0);    if (emptySearch)        assertSearchEmpty(resultsDS);    // Add the datasource to the search tree    searchTree.database.AddDataSource(resultsDS);    searchTree.builder.rebuild();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ac44cfa4a2265c1f5a03e1366510e71ba1a5db17/help.js/buggy/toolkit/components/help/content/help.js