UNPKG

funcunit

Version:
15 lines (13 loc) 379 B
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'; };