Remove old format support

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2026-01-26 10:26:47 +00:00
parent 4926084387
commit 9d712d3e80
-21
View File
@@ -329,27 +329,6 @@ async function parseListItem(
description = description
.replace(/\n*\*\*Affected components:\*\*[ \t]*[^\n]+/g, '')
.trim();
} else {
// Fallback: try old format without bold markers for backwards compatibility
// Some older changelog entries may not have been migrated to the new format
const oldFormatMatch = description.match(
/Affected components?:\s*([^\n]+)/i,
);
if (oldFormatMatch) {
const componentNames = oldFormatMatch[1]
.split(',')
.map(name => name.trim())
.filter(Boolean);
components = componentNames
.map(name => mapComponentName(name, validComponents))
.filter(Boolean);
// Strip old format line from description
description = description
.replace(/\n*Affected components?:[ \t]*[^\n]+/i, '')
.trim();
}
}
// Extract migration notes using bold marker (standard format)