Skip to content

Commit

Permalink
Ignore links to PDF
Browse files Browse the repository at this point in the history
part of #508
  • Loading branch information
dontcallmedom committed Apr 4, 2024
1 parent eb5d709 commit 0756074
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/study-backrefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ function studyBackrefs (edResults, trResults = [], htmlFragments = {}) {
shortname = spec.links.rawlinks[link].specShortname;
} else {
let nakedLink = link;

// Ignoring links to PDF specs
if (nakedLink.endsWith('.pdf')) {
return;
}

if (nakedLink.endsWith('.html')) {
nakedLink = nakedLink.replace(/\/(Overview|overview|index)\.html$/, '/');
}
Expand Down

0 comments on commit 0756074

Please sign in to comment.