MCPcopy
hub / github.com/remoteintech/remote-jobs / isParked

Function isParked

scripts/fix-links.mjs:132–144  ·  view source on GitHub ↗
(finalUrl)

Source from the content-addressed store, hash-verified

130}
131
132function isParked(finalUrl) {
133 const u = safeUrl(finalUrl);
134 if (!u) return false;
135 const host = u.hostname.toLowerCase();
136 if (PARKED_SUBDOMAIN_RE.test(host)) return true;
137 for (const ph of PARKED_HOSTS) {
138 const [phHost, phPath] = ph.split('/', 2);
139 if (host === phHost || host.endsWith('.' + phHost)) {
140 if (!phPath || u.pathname.startsWith('/' + phPath)) return true;
141 }
142 }
143 return false;
144}
145
146// ---------- Re-verification with a real browser UA ----------
147async function reverify(url) {

Callers 1

classifyFunction · 0.85

Calls 1

safeUrlFunction · 0.85

Tested by

no test coverage detected