rem: var lines = icalStr.split("\n"); 
add: var lines = outlookCsvStr.split("\n"); var totalLines = lines.length-1;  var oneLineEventRegExp =        /^"(.*)","(.*)","(.*)","(.*)","(.*)","(True|False)","(True|False)","([^"]*)","([^"]*)",("([^"]*)"|),("([^"]*)"|),("([^"]*)"|),("([^"]*)"|),("([^"]*)"|),("([^"]*)"|),("(.*)"|),("(.*)"|),("(.*)"|),"(Normal|Low|High)","(True|False)",("(.*)"|),"(\d)"/; var multiLineEventStartRegExp = /^"(.*)","(.*)","(.*)","(.*)","(.*)","(True|False)","(True|False)","([^"]*)","([^"]*)",("([^"]*)"|),("([^"]*)"|),("([^"]*)"|),("([^"]*)"|),("([^"]*)"|),("([^"]*)"|),("(.*))/; var multiLineEventEndRegExp =   /^([^"]*)",("(.*)"|),("(.*)"|),"(Normal|Low|High)","(True|False)",("(.*)"|),"(\d)"/;   var eventFields; var tmpEventFields;  var formater = new DateFormater(); var sDate; var eDate; var alarmDate;  
context: function parseOutlookCSVData( icalStr, discardDuplicates, promptEach ){  var lines = icalStr.split("\n");  var calendarEvent;  var eventArray = new Array();  var dupArray = new Array();  var lineIndex = 1;  var totalLines = lines.length-1;  var exists = false;  var formater = new DateFormater();     while (lineIndex < totalLines) {    var fields = lines[lineIndex].split('","');    ++lineIndex;    if (fields.length < 5)      continue;          fields[0] = fields[0].substring(1); // strip off the leading quote...    var title = fields[0];    //parseShortDate magically decides the format (locale) of dates/times    var sdate = formater.parseShortDate(fields[1]+" "+fields[2]);    var edate = formater.parseShortDate(fields[3]+" "+fields[4]);    if ((sdate != null) && (edate != null)) {      exists = entryExists(sdate, title);      calendarEvent = createEvent();      calendarEvent.id = createUniqueID();      calendarEvent.title = title;      calendarEvent.start.setTime(sdate);      calendarEvent.end.setTime(edate);      if ( !exists )        eventArray[ eventArray.length ] = calendarEvent;      else        dupArray[ dupArray.length ] = calendarEvent;    }  }//   dump("*** calendar entries : " + eventArray.length + "\n");//   dump("*** duplicate entries: " + dupArray.length + "\n");  return { calendarEventArray: eventArray, calendarDuplicateArray: dupArray };}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/760568201aa7e272b4cd904333abe083202c6342/importExport.js/clean/calendar/resources/content/importExport.js