mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-19 08:00:23 +00:00
fix(ngdocs): shortDescription() should not error if no description
This commit is contained in:
parent
e196413df6
commit
4c8fa35324
1 changed files with 1 additions and 0 deletions
|
|
@ -214,6 +214,7 @@ Doc.prototype = {
|
|||
},
|
||||
|
||||
shortDescription : function() {
|
||||
if (!this.description) return this.description;
|
||||
var text = this.description.split("\n")[0];
|
||||
text = text.replace(/<.+?\/?>/g, '');
|
||||
text = text.replace(/{/g,'{');
|
||||
|
|
|
|||
Loading…
Reference in a new issue