frontend/.pnpm-store/v3/files/1c/8c77006f84b549278c8fc8b5a6fc7259b9e9b7904246939d4cc8b49a4ea365ab9a5f70acf450bc361eae5a550cb888a1d7384907e2219d0b6a7a5c9473f38d

23 lines
571 B
Plaintext

/**
* Returns true iff the domain of hostname matches.
*
* Examples:
*
* ``` js
* dnsDomainIs("www.netscape.com", ".netscape.com")
* // is true.
*
* dnsDomainIs("www", ".netscape.com")
* // is false.
*
* dnsDomainIs("www.mcom.com", ".netscape.com")
* // is false.
* ```
*
*
* @param {String} host is the hostname from the URL.
* @param {String} domain is the domain name to test the hostname against.
* @return {Boolean} true iff the domain of the hostname matches.
*/
export default function dnsDomainIs(host: string, domain: string): boolean;