From b538e2a0d02bf64bb11a05e6d2fef80c042cbf86 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Sat, 10 Sep 2022 11:04:28 +0900 Subject: [PATCH] Try rewriting CSS spec URLs in the linter --- test/linter/test-spec-urls.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/linter/test-spec-urls.ts b/test/linter/test-spec-urls.ts index 39ec9837033bb4..1ba15311f3d3b3 100644 --- a/test/linter/test-spec-urls.ts +++ b/test/linter/test-spec-urls.ts @@ -68,6 +68,7 @@ const processData = (data: CompatStatement, logger: Logger): void => { : [data.spec_url]; for (const specURL of featureSpecURLs) { + specURL.replace('w3c.github.io/csswg-drafts', 'drafts.csswg.org'); if (!allowedSpecURLs.some((prefix) => specURL.startsWith(prefix))) { logger.error( chalk`Invalid specification URL found: {bold ${specURL}}. Try a more current specification URL and/or check if the specification URL is listed in https://github.com/w3c/browser-specs.`,