Skip to content

Commit

Permalink
ignore all w3 links
Browse files Browse the repository at this point in the history
  • Loading branch information
thaddmt committed Oct 10, 2023
1 parent 34483c7 commit 2486b79
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/scripts/util/checkLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ export async function checkLink(
`⚠️[WARNING...] page #${pageIdx} link #${linkIdx} "${tagName}" tag "${tagText}" doesn't have a href.`
);
res({ ...linkData, statusCode: 0 });
} else if (IGNORED_LINKS.includes(href) || requestedUrl.has(href)) {
} else if (
IGNORED_LINKS.includes(href) ||
requestedUrl.has(href) ||
(href as string).includes('www.w3.org')
) {
res({ ...linkData, statusCode: 0 });
} else {
const { get } = href.includes('https:') ? https : http;
Expand Down

0 comments on commit 2486b79

Please sign in to comment.