diff --git a/src/migration/ccf-releases/md-parser.js b/src/migration/ccf-releases/md-parser.js index 96ede52..c950f64 100644 --- a/src/migration/ccf-releases/md-parser.js +++ b/src/migration/ccf-releases/md-parser.js @@ -34,10 +34,10 @@ export class HraMarkdownParser { } hasKey(key) { - return !!this.rawMd.find((l) => l.includes(`**${key}:**`)); + return !!this.rawMd.find((l) => l.includes(`**${key}:**`)) && this.getMetadata(key)?.trim().length > 0; } getMetadata(key) { - if (!this.hasKey(key)) { + if (!this.rawMd.find((l) => l.includes(`**${key}:**`))) { return ''; } return this.rawMd