Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 96697f4

Browse files
committed
fix(ngdoc): failing test
1 parent 7e18724 commit 96697f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/ngdoc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Doc.prototype = {
201201
}
202202
});
203203
flush();
204-
this.shortName = this.name.split(/[\.:#]/).pop();
204+
this.shortName = this.name.split(/[\.:#]/).pop().trim();
205205
this.id = this.id || // if we have an id just use it
206206
(((this.file||'').match(/.*\/([^\/]*)\.ngdoc/)||{})[1]) || // try to extract it from file name
207207
this.name; // default to name
@@ -737,7 +737,7 @@ function metadata(docs){
737737
for ( var i = 1; i < path.length; i++) {
738738
path.splice(i, 1);
739739
}
740-
var shortName = path.pop();
740+
var shortName = path.pop().trim();
741741

742742
if (path.pop() == 'input') {
743743
shortName = 'input [' + shortName + ']';

0 commit comments

Comments
 (0)