Closed Skeyelab closed 5 months ago
I ran across a site that had a sitemap i wanted to crawl named sitemap_recent.xml
sitemap_recent.xml
This PR changes the check for isUrlASitemap to the following:
isUrlASitemap
const isUrlASitemap = /sitemap.*\.xml$/.test(config.url);
This code will set isUrlASitemap to true if config.url ends with 'sitemap' followed by any characters and then '.xml'. For example, it will match sitemap123.xml, sitemap-abc.xml, sitemap.xml, etc.
sitemap123.xml
sitemap-abc.xml
sitemap.xml
:tada: This PR is included in version 1.3.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
I ran across a site that had a sitemap i wanted to crawl named
sitemap_recent.xml
This PR changes the check for
isUrlASitemap
to the following:const isUrlASitemap = /sitemap.*\.xml$/.test(config.url);
This code will set isUrlASitemap to true if config.url ends with 'sitemap' followed by any characters and then '.xml'. For example, it will match
sitemap123.xml
,sitemap-abc.xml
,sitemap.xml
, etc.