Skip to content

Commit

Permalink
chore(flaws): exclude /discord from broken-link flaw (#10007)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Nov 10, 2023
1 parent b499b71 commit c72d8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/flaws/broken-links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export function getBrokenLinksFlaws(
} else if (
href.startsWith("/") &&
!href.startsWith("//") &&
!/^\/en-US\/blog(\/|$)/.test(href)
!/^\/(discord|en-US\/blog)(\/|$)/.test(href)
) {
// Got to fake the domain to sensible extract the .search and .hash
const absoluteURL = new URL(href, "http://www.example.com");
Expand Down

0 comments on commit c72d8bc

Please sign in to comment.