lib/web/DocmaWeb.Utils.js
function cleanName(name) {
    // e.g. <anonymous>~obj.doStuff —» obj.doStuff
    name = getStr(name)
        .replace(/([^>]+>)?~?(.*)/, '$2')
        // e.g. '"./node_modules/eventemitter3/index.js"~EventEmitter'.
        .replace(/^"[^"]+"\.?~?([^"]+)$/, '$1')
        .replace(/^(module\.)?exports\./, '')
        .replace(/^module:/, '');
    return fixBracket(name);
}
function cleanName(name) {
    // e.g. <anonymous>~obj.doStuff —» obj.doStuff
    name = getStr(name)
        .replace(/([^>]+>)?~?(.*)/, '$2')
        // e.g. '"./node_modules/eventemitter3/index.js"~EventEmitter'.
        .replace(/^"[^"]+"\.?~?([^"]+)$/, '$1')
        .replace(/^(module\.)?exports\./, '')
        .replace(/^module:/, '');
    return fixBracket(name);
}
function cleanName ( name ) { // e.g. <anonymous>~obj.doStuff —» obj.doStuff name = getStr ( name ) . replace ( / ([^>]+>)?~?(.*) / , '$2' ) // e.g. '"./node_modules/eventemitter3/index.js"~EventEmitter'. . replace ( / ^"[^"]+"\.?~?([^"]+)$ / , '$1' ) . replace ( / ^(module\.)?exports\. / , '' ) . replace ( / ^module: / , '' ) ; return fixBracket ( name ) ; }
Cleans the given symbol name.
@private
@param {String} name - Symbol name to be cleaned.
@returns {String} -
Cleans the given symbol name .