Works for no comments

This commit is contained in:
acbabis 2015-02-24 14:15:43 -07:00
parent 65f307322a
commit e99ecb5dd4

View File

@ -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
}
}
};