Skip to content

Commit

Permalink
Removed dependency from file name for local sitemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
shura71 committed Dec 1, 2023
1 parent b68debe commit 5ab3596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sitemap-parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def remote_sitemap?
end

def local_sitemap?
File.exist?(url) && url =~ %r{[\\/]sitemap(_index)?\.xml\Z}i
File.exist?(url)
end

def fetch_remote_sitemap
Expand Down

0 comments on commit 5ab3596

Please sign in to comment.