Skip to content

Commit

Permalink
Adjust check on old URL of multipage html spec
Browse files Browse the repository at this point in the history
part of #210
  • Loading branch information
dontcallmedom committed Sep 20, 2022
1 parent 577e624 commit f8e34d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/study-backrefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ async function studyBackrefs(edResults, trResults = []) {
recordAnomaly(spec, "outdatedSpecs", link);
return;
}
// Links to WHATWG commit snapshots
if (link.match(/spec\.whatwg\.org/) && link.match(/commit-snapshots/)) {
recordAnomaly(spec, "outdatedSpecs", link);
return;
Expand Down Expand Up @@ -399,7 +400,10 @@ async function studyBackrefs(edResults, trResults = []) {
if ((trSourceSpec.ids || []).includes(fullReleaseLink) && link.match(/w3\.org\/TR\//)) {
recordAnomaly(spec, "evolvingLinks", link + "#" + anchor);
} else {
// Links to WHATWG commit snapshots
if (link.startsWith("https://html.spec.whatwg.org/C")) {
recordAnomaly(spec, "nonCanonicalRefs", link);
link = link.replace("https://html.spec.whatwg.org/C", "https://html.spec.whatwg.org/multipage");
}
// Links to single-page version of HTML spec
if (link === "https://html.spec.whatwg.org/"
// is there an equivalent id in the multipage spec?
Expand Down

0 comments on commit f8e34d0

Please sign in to comment.