funcunit
Version:
<!-- @hide title
15 lines (13 loc) • 379 B
JavaScript
module.exports = function(docObject, configuration){
var name = typeof docObject == "string" ? docObject : docObject.name;
if(!name) {
debugger;
}
return configuration && name === configuration.parent ?
'index.html' :
name.replace(/ /g, "_")
.replace(/./g, ".")
.replace(/>/g, "_gt_")
.replace(/\*/g, "_star_")
.replace(/\//g, "|") + '.html';
};