aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/ngdoc.js
diff options
context:
space:
mode:
authorMisko Hevery2012-06-12 11:06:06 -0700
committerMisko Hevery2012-08-27 15:44:38 -0700
commit96697f464fdce21480f52b4cf6d74a267058f63d (patch)
treec58b3e3d3c966224112210f455ad96e80fafb416 /docs/src/ngdoc.js
parent7e18724dfafa82146b4424ae82c3f18245b67814 (diff)
downloadangular.js-96697f464fdce21480f52b4cf6d74a267058f63d.tar.bz2
fix(ngdoc): failing test
Diffstat (limited to 'docs/src/ngdoc.js')
-rw-r--r--docs/src/ngdoc.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js
index 4251465b..ae612a55 100644
--- a/docs/src/ngdoc.js
+++ b/docs/src/ngdoc.js
@@ -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
@@ -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 + ']';