mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Works for no comments
This commit is contained in:
parent
65f307322a
commit
e99ecb5dd4
@ -13,6 +13,8 @@ exports.handlers = {
|
||||
var comments = e.source.match(/\/\*\*[\s\S]+?\*\//g);
|
||||
if (comments) {
|
||||
e.source = comments.join('\n\n');
|
||||
} else {
|
||||
e.source = ''; // If file has no comments, parser should still receive no code
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user