rem: this.mCurrentFilter = new RegExp(filterStr.substr(0, (filterStr.length) - 1) + ")"); 
add: this.mCurrentFilter = new RegExp(filterStr.substr(0, (filterStr.length) - 1) + ")", "i"); 
context:   setFilter: function(filter) {    // The filter may contain several components, i.e.:    // *.html; *.htm    // First separate it into its components    var filterList = filter.split(/;[ ]*/);    if (filterList.length == 0) {      // this shouldn't happen      return;    }    // Transform everything in the array to a regexp    var tmp = filterList[0].replace(/\./g, "\\.");    filterList[0] = tmp.replace(/\*/g, ".*");    var shortestPrefix = filterList[0];        for (var i = 1; i < filterList.length; i++) {      // * becomes .*, and we escape all .'s with \      tmp = filterList[i].replace(/\./g, "\\.");      filterList[i] = tmp.replace(/\*/g, ".*");      shortestPrefix = shortestPrefix.substr(0, numMatchingChars(shortestPrefix, filterList[i]));    }        var filterStr = shortestPrefix+"(";    var startpos = shortestPrefix.length;    for (i = 0; i < filterList.length; i++) {      filterStr += filterList[i].substr(shortestPrefix.length) + "|";    }    this.mCurrentFilter = new RegExp(filterStr.substr(0, (filterStr.length) - 1) + ")");    this.mFilteredFiles = [];    if (this.mOutliner) {      var rowDiff = -(this.mTotalRows - this.mDirList.length);      this.mTotalRows = this.mDirList.length;      this.mOutliner.rowCountChanged(this.mDirList.length, rowDiff);      this.mOutliner.invalidate();    }    this.filterFiles();    this.sort(this.mSortType, this.mReverseSort, true);  },
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/927006421d3579d2c30fa466986ba6222672320f/nsFileView.js/clean/xpfe/components/filepicker/res/content/nsFileView.js