rem:  var i = sTextiCalendar.indexOf("METHOD") if(i == -1) { var i = sTextiCalendar.indexOf("VERSION") if(i != -1) { sTextiCalendar = sTextiCalendar.substring(0,i) + "METHOD:PUBLISH\n" + sTextiCalendar.substring(i, sTextiCalendar.length); } }   var i = sTextiCalendar.indexOf("DTSTAMP") if(i == -1) { var i = sTextiCalendar.indexOf("UID") if(i != -1) { sTextiCalendar = sTextiCalendar.substring(0,i) + "DTSTAMP:20020430T114937Z\n" + sTextiCalendar.substring(i, sTextiCalendar.length); } }  
context: function patchICalStringForExport( sTextiCalendar ){   // HACK: Remove this hack when Calendar supports METHOD properties   var i = sTextiCalendar.indexOf("METHOD")   if(i == -1)    {      var i = sTextiCalendar.indexOf("VERSION")      if(i != -1) {         sTextiCalendar =             sTextiCalendar.substring(0,i) + "METHOD:PUBLISH\n" + sTextiCalendar.substring(i, sTextiCalendar.length);      }   }      // HACK: Remove this hack when Calendar supports DTSTAMP properties   var i = sTextiCalendar.indexOf("DTSTAMP")   if(i == -1)    {      var i = sTextiCalendar.indexOf("UID")      if(i != -1) {         sTextiCalendar =             sTextiCalendar.substring(0,i) + "DTSTAMP:20020430T114937Z\n" + sTextiCalendar.substring(i, sTextiCalendar.length);      }   }      // HACK: TRIGGER patch hack for Outlook 2000   var i = sTextiCalendar.indexOf("TRIGGER\n ;VALUE=DURATION\n :-");   if(i != -1) {      sTextiCalendar =         sTextiCalendar.substring(0,i+27) + sTextiCalendar.substring(i+28, sTextiCalendar.length);   }  return sTextiCalendar;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4f6e7fab8c8b833e557dd38490a94b16efacf83d/calendarImportExport.js/buggy/calendar/resources/content/calendarImportExport.js