Skip to content

Commit

Permalink
Fix broken links (#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierJp authored Jul 20, 2023
1 parent 8e7bc5c commit a09b775
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions node-scripts/checkBrokenLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ const urlChecker = new blc.SiteChecker(
return;
}

// legifrance too slow
if (result.url.original.indexOf('www.legifrance.gouv.fr') > -1) {
return;
}

// linkedin pain in the ***
if (result.url.original.indexOf('www.linkedin.com') > -1) {
if (
result.url.original.indexOf('www.legifrance.gouv.fr') > -1 ||
result.url.original.indexOf('www.linkedin.com') > -1 ||
result.url.original.indexOf('twitter.com') > -1
) {
return;
}

Expand Down

0 comments on commit a09b775

Please sign in to comment.