documentation/test/normalize.js
2015-10-04 12:12:57 -04:00

14 lines
323 B
JavaScript

function normalize(comments) {
comments.forEach(function (comment) {
delete comment.context.file;
if (comment.context.github) {
comment.context.github = '[github]';
}
normalize(comment.members.instance);
normalize(comment.members.static);
});
return comments;
}
module.exports = normalize;