Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,10 @@ async function emitDom() {
} catch {
commentsMap = {};
}
commentCleanup(commentsMap);
const result = convert(idl, commentsMap);
return result;
}

function commentCleanup(commentsMap: Record<string, string>) {
for (const key in commentsMap) {
// Filters out phrases for nested comments as we retargets them:
// "This operation receives a dictionary, which has these members:"
commentsMap[key] = commentsMap[key].replace(/[,.][^,.]+:$/g, ".");
}
}

function mergeApiDescriptions(
idl: Browser.WebIdl,
descriptions: { interfaces: { interface: Record<string, any> } },
Expand Down