Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
feat(ngdocs): allow dots in names #87
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrankov committed Aug 3, 2015
1 parent 2299be8 commit cd0db4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit cd0db4c

Please sign in to comment.