diff --git a/src/build.ts b/src/build.ts index f22b8fe82..5b4514595 100644 --- a/src/build.ts +++ b/src/build.ts @@ -116,19 +116,10 @@ async function emitDom() { } catch { commentsMap = {}; } - commentCleanup(commentsMap); const result = convert(idl, commentsMap); return result; } - function commentCleanup(commentsMap: Record) { - 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 } },