Skip to content

Commit

Permalink
make sure the implementation in the headers is in a <dd><a>
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak committed Dec 16, 2024
1 parent 2289eac commit 00acd07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rules/metadata/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ 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 &&
dts.Implementation.dd &&
dts.Implementation.dd.querySelector('a')
) {
meta.implementationReport =
dts.Implementation.dd.querySelector('a').href;
}
Expand Down

0 comments on commit 00acd07

Please sign in to comment.