Skip to content

Commit

Permalink
ignore sitemap.xml links
Browse files Browse the repository at this point in the history
  • Loading branch information
lgraubner committed May 11, 2018
1 parent e73e3fb commit ce143c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/discoverResources.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ module.exports = (buffer, queueItem) => {
const links = $('a[href]').map(function iteratee() {
let href = $(this).attr('href');

if (/sitemap\.xml$/.test(href)) {
return null;
}

// exclude "mailto:" etc
if (/^[a-z]+:(?!\/\/)/i.test(href)) {
return null;
Expand Down

0 comments on commit ce143c4

Please sign in to comment.