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

Commit

Permalink
fix(ngdoc): failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Aug 27, 2012
1 parent 7e18724 commit 96697f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/ngdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Doc.prototype = {
}
});
flush();
this.shortName = this.name.split(/[\.:#]/).pop();
this.shortName = this.name.split(/[\.:#]/).pop().trim();
this.id = this.id || // if we have an id just use it
(((this.file||'').match(/.*\/([^\/]*)\.ngdoc/)||{})[1]) || // try to extract it from file name
this.name; // default to name
Expand Down Expand Up @@ -737,7 +737,7 @@ function metadata(docs){
for ( var i = 1; i < path.length; i++) {
path.splice(i, 1);
}
var shortName = path.pop();
var shortName = path.pop().trim();

if (path.pop() == 'input') {
shortName = 'input [' + shortName + ']';
Expand Down

0 comments on commit 96697f4

Please sign in to comment.