mirror of
https://github.com/documentationjs/documentation.git
synced 2025-12-08 18:23:43 +00:00
14 lines
323 B
JavaScript
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;
|