We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e18724 commit 96697f4Copy full SHA for 96697f4
1 file changed
docs/src/ngdoc.js
@@ -201,7 +201,7 @@ Doc.prototype = {
201
}
202
});
203
flush();
204
- this.shortName = this.name.split(/[\.:#]/).pop();
+ this.shortName = this.name.split(/[\.:#]/).pop().trim();
205
this.id = this.id || // if we have an id just use it
206
(((this.file||'').match(/.*\/([^\/]*)\.ngdoc/)||{})[1]) || // try to extract it from file name
207
this.name; // default to name
@@ -737,7 +737,7 @@ function metadata(docs){
737
for ( var i = 1; i < path.length; i++) {
738
path.splice(i, 1);
739
740
- var shortName = path.pop();
+ var shortName = path.pop().trim();
741
742
if (path.pop() == 'input') {
743
shortName = 'input [' + shortName + ']';
0 commit comments