We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d91140d commit c771b25Copy full SHA for c771b25
lib/jsdoc.js
@@ -63,8 +63,11 @@ function DocComment(value, loc) {
63
this.valid = _parsed.hasOwnProperty('line');
64
65
// doc parsed data
66
- this.description = _parsed.source && _parsed.description ?
67
- _parsed.source.substr(0, _parsed.source.indexOf('\n@')) : null;
+ var _d = _parsed.source;
+ var _dog = _d && _d.indexOf('\n@');
68
+ this.description = !_d || _d[0] === '@' ?
69
+ null
70
+ : (_dog === -1 ? _d : _d.substr(0, _dog));
71
72
this.tags = (_parsed.tags || []).map(function(tag) {
73
return new DocTag(tag, new DocLocation(tag.line, 3, loc.start));
0 commit comments