Skip to content

Commit 09a1f9e

Browse files
committed
Checking W3C group homepages
1 parent a9338d7 commit 09a1f9e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/2026.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,15 @@ async function compute(group, template, deliverables, charter) {
319319
const w3cGroups = Array.from(await listGroups());
320320
checkGroups.forEach(a => {
321321
const name = a.textContent.trim();
322-
const match = w3cGroups.find(g => g.name === name);
322+
const href = a.href;
323+
let match = w3cGroups.find(g => g.name === name);
324+
if (!match) {
325+
// try to be more flexible
326+
match = w3cGroups.find(g => g["_links"]["homepage"] === href);
327+
}
323328
if (match && match["_links"]["homepage"]) {
324329
a.href = match["_links"]["homepage"].href;
330+
a.textContent = match.name;
325331
} else {
326332
// the group might have been closed or changed name
327333
a.classList.add('todo');

0 commit comments

Comments
 (0)