Skip to content

Commit

Permalink
Try rewriting CSS spec URLs in the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker committed Sep 10, 2022
1 parent b09326b commit b538e2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/linter/test-spec-urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
Expand Down

0 comments on commit b538e2a

Please sign in to comment.