rem: if (email.indexOf("mailto:") == 0) email = email.split("mailto:")[1] attendeeNames += email; 
add: if (regexp.test(email)) { attendeeNames += RegExp.$1; } else { attendeeNames += email; } 
context: function updateAttendees(){  var attendeeRow = document.getElementById("attendee-row");  if(!window.attendees || !window.attendees.length) {    attendeeRow.setAttribute('collapsed','true');  } else {    attendeeRow.removeAttribute('collapsed');    var attendeeNames = "";    var numAttendees = window.attendees.length;    for(var i=0; i<numAttendees; i++) {      var attendee = window.attendees[i];      if(attendee.commonName && attendee.commonName.length) {        attendeeNames += attendee.commonName;      } else if(attendee.id && attendee.id.length) {        var email = attendee.id;        if (email.indexOf("mailto:") == 0)          email = email.split("mailto:")[1]        attendeeNames += email;      } else {        continue;      }      if(i+1 < numAttendees)        attendeeNames += ',';    }    var attendeeList = document.getElementById("attendee-list");    var callback = function func() {      attendeeList.setAttribute('value',attendeeNames);    }    setTimeout(callback, 1);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/28ae23d79e79ed57bd3e3c3f08327b8eec7597a5/sun-calendar-event-dialog.js/buggy/calendar/prototypes/wcap/sun-calendar-event-dialog.js