add: objValue = objValue.toLowerCase(); 
context: CalendarEventDataSource.prototype.search = function calEvent_search( searchText, fieldName ){   searchText = searchText.toLowerCase();      /*   ** Try to get rid of all the spaces in the search text.   ** At present, this only gets rid of one.. I don't know why.   */   var regexp = "\s+";   searchText = searchText.replace( regexp, "" );      var searchEventTable = new Array();      if( searchText != "" )   {      var eventTable = this.currentEvents;            for( var index = 0; index < eventTable.length; ++index )      {         var calendarEvent = eventTable[ index ];                  if ( typeof fieldName == "string")          {            var value = calendarEvent[ fieldName ].toLowerCase();                     if( value )            {               if( value.indexOf( searchText ) != -1 )               {                  searchEventTable[ searchEventTable.length ]  =  calendarEvent;                   break;               }            }         }         else if ( typeof fieldName == "object" )          {            for ( i in fieldName )             {               var objValue = calendarEvent[ fieldName[i] ].toLowerCase();                        if( objValue )               {                  if( objValue.indexOf( searchText ) != -1 )                  {                     searchEventTable[ searchEventTable.length ]  =  calendarEvent;                      break;                  }               }            }         }      }   }   searchEventTable.sort( this.orderRawEventsByDate );   return searchEventTable;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/06f8b510f0630d821deb92703c22ae6d892eaf37/calendarEvent.js/buggy/calendar/resources/content/calendarEvent.js