rem: const chars = "abcdefghijklmnopqrstuvwxyz0123456789"; var name = aName.toLowerCase() .split("").filter(function (el) { return chars.indexOf(el) != -1; }).join(""); 
add: const chars = "-abcdefghijklmnopqrstuvwxyz0123456789";  var name = aName.toLowerCase(); name = name.replace(/ /g, "-"); name = name.split("").filter(function (el) { return chars.indexOf(el) != -1; }).join("");  
context: function sanitizeName(aName) {  const chars = "abcdefghijklmnopqrstuvwxyz0123456789";  var name = aName.toLowerCase()                  .split("").filter(function (el) {                                      return chars.indexOf(el) != -1;                                    }).join("");  if (!name) {    // Our input had no valid characters - use a random name    var cl = chars.length;    for (var i = 0; i < 8; ++i)      name += chars.charAt(Math.round(Math.random() * cl));  }  return name;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c5b8e2d95e4dfec4f4c95dfe37b3cf1a54bcbb82/nsSearchService.js/clean/browser/components/search/nsSearchService.js