rem: function extractFileNameFromUrl(urlstr) { 
add: function extractFileNameFromUrl(urlstr) { 
context: function extractFileNameFromUrl(urlstr){  if (!urlstr) return null;  // For "http://foo/bar/cheese.jpg", return "cheese.jpg".  // For "imap://user@host.com:143/fetch>UID>/INBOX>951?part=1.2&type=image/gif&filename=foo.jpeg", return "foo.jpeg".  // The 2nd url (ie, "imap://...") is generated for inline images by MimeInlineImage_parse_begin() in mimeiimg.cpp.  var lastSlash = urlstr.slice(urlstr.lastIndexOf( "/" )+1);  if (lastSlash)  {     var nameIndex = lastSlash.lastIndexOf( "filename=" );    if (nameIndex != -1)      return (lastSlash.slice(nameIndex+9));    else      return lastSlash;  }  return null; }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ca00e9dbdec43c97ee90f586668256493d18d045/utilityOverlay.js/buggy/suite/common/utilityOverlay.js