MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / matchesBaseDomain

Method matchesBaseDomain

server/src/validator.ts:500–509  ·  view source on GitHub ↗
(identifierValue: string, normalizedDomain: string)

Source from the content-addressed store, hash-verified

498 }
499
500 private matchesBaseDomain(identifierValue: string, normalizedDomain: string): boolean {
501 if (identifierValue === normalizedDomain) {
502 return true;
503 }
504
505 return (
506 normalizedDomain === `www.${identifierValue}` ||
507 normalizedDomain === `m.${identifierValue}`
508 );
509 }
510
511 private normalizeDomain(value: string): string {
512 let normalized = value.trim().toLowerCase();

Callers 1

propertyMatchesDomainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected