Skip to content

Commit

Permalink
fix to allow for colons in comment lines not intended as headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kainosnoema committed Oct 10, 2011
1 parent 5410686 commit d477daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dox.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ exports.parseComment = function(str) {
, description = {};

// parse comment body
description.full = str.split('\n@')[0].replace(/^([\w ]+):/gm, '## $1');
description.full = str.split('\n@')[0].replace(/^([\w ]+):$/gm, '## $1');
description.summary = description.full.split('\n\n')[0];
description.body = description.full.split('\n\n').slice(1).join('\n\n');
comment.description = description;
Expand Down

0 comments on commit d477daa

Please sign in to comment.