From 47d6617470127624556401fdb5293ae4d55f94ad Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang <1696128+deniak@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:40:58 +0400 Subject: [PATCH] make sure the implementation in the headers is in a
(#1899) --- 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; }