From c72d8bca2fdcab7aecb7ccad6b4ba2e38b62f6a5 Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Fri, 10 Nov 2023 21:54:15 +0100 Subject: [PATCH] chore(flaws): exclude /discord from broken-link flaw (#10007) --- build/flaws/broken-links.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/flaws/broken-links.ts b/build/flaws/broken-links.ts index 3ad40151571a..192916ca55c6 100644 --- a/build/flaws/broken-links.ts +++ b/build/flaws/broken-links.ts @@ -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");