Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
20
function
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
getPageConfig
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected