MCPcopy Index your code
hub / github.com/MALSync/MALSync / checkDomain

Function checkDomain

src/utils/test.ts:20–23  ·  view source on GitHub ↗
(url, domain)

Source from the content-addressed store, hash-verified

18}
19
20function checkDomain(url, domain) {
21 const partDomain = utils.urlPart(domain, 2).replace('.com.br', '.br').split('.').slice(-2, -1)[0];
22 return new RegExp(`(\\.|^|\\/)${partDomain}\\.`).test(url);
23}

Callers 1

getPageConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected