rem: if (name.indexOf(".") > -1) name = name.substring(0,name.indexOf(".")); 
add: var dotpos = name.lastIndexOf("."); if (dotpos > 0) name = name.substring(0, dotpos); 
context: function buildAliasFromFile(uploadFile) {   var rawName = uploadFile.getName().split("/");   var name = rawName[rawName.length-1];   if (name.indexOf(".") > -1)      name = name.substring(0,name.indexOf("."));   // clean name from any invalid characters   var invalidChars = new RegExp("[ \\/?&=\\+#\\\\]");   invalidChars.ignoreCase = true;   invalidChars.global = true;   return (name.replace(invalidChars,""));}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/24a7f40cf9b77ee1b09bb4d49748e0de4fd8a34a/objectFunctions.js/clean/code/Global/objectFunctions.js