From cd0db4c0214d02453017ba1a3ded5c8b88b319a3 Mon Sep 17 00:00:00 2001 From: Pavel Frankov Date: Mon, 3 Aug 2015 22:48:11 +0600 Subject: [PATCH] feat(ngdocs): allow dots in names #87 --- src/ngdoc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ngdoc.js b/src/ngdoc.js index 6d65b39..4fdc9f5 100644 --- a/src/ngdoc.js +++ b/src/ngdoc.js @@ -382,11 +382,11 @@ Doc.prototype = { var shortName = this.name.split("#"); if (shortName.length > 1) { this.shortName = shortName.pop().trim(); - }else { + } else { shortName = this.name.split(":"); if (shortName.length > 1) { this.shortName = shortName.pop().trim(); - }else { + } else { this.shortName = this.name.split(".").pop().trim(); } }