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

Commit 4c8fa35

Browse files
fix(ngdocs): shortDescription() should not error if no description
1 parent e196413 commit 4c8fa35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/src/ngdoc.js

+1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ Doc.prototype = {
214214
},
215215

216216
shortDescription : function() {
217+
if (!this.description) return this.description;
217218
var text = this.description.split("\n")[0];
218219
text = text.replace(/<.+?\/?>/g, '');
219220
text = text.replace(/{/g,'&#123;');

0 commit comments

Comments
 (0)