Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
21
const
extractUrlsFromSitemap = (xml) =>
22
Array.from(xml.matchAll(/<loc>(.*?)<\/loc>/gu), (match) => match[1]);
23
24
const
normalizeUrls = (urls) =>
25
Array.from(
Callers
1
readSitemapUrls
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected