MCPcopy Create free account
hub / github.com/Snailclimb/JavaGuide / extractUrlsFromSitemap

Function extractUrlsFromSitemap

scripts/indexnow-submit.mjs:21–22  ·  view source on GitHub ↗
(xml)

Source from the content-addressed store, hash-verified

19 .filter(Boolean);
20
21const extractUrlsFromSitemap = (xml) =>
22 Array.from(xml.matchAll(/<loc>(.*?)<\/loc>/gu), (match) => match[1]);
23
24const normalizeUrls = (urls) =>
25 Array.from(

Callers 1

readSitemapUrlsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected