From 87ba4935bc1c12ea08a1c6c3aee37e97d03c6a22 Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang Date: Mon, 16 Dec 2024 14:31:20 +0400 Subject: [PATCH] make sure the implementation in the headers is in a
--- lib/rules/metadata/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/metadata/profile.js b/lib/rules/metadata/profile.js index 0ef972bc2..7db3f78bc 100644 --- a/lib/rules/metadata/profile.js +++ b/lib/rules/metadata/profile.js @@ -72,7 +72,7 @@ export async function check(sr, done) { // implementation report if (['CR', 'CRD', 'PR', 'REC'].indexOf(id) > -1) { const dts = sr.extractHeaders(); - if (dts.Implementation) { + if (dts.Implementation?.dd?.querySelector('a')) { meta.implementationReport = dts.Implementation.dd.querySelector('a').href; }