PATH:
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
pac-resolver
/** * Module exports. */ module.exports = dnsDomainIs; /** * 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. */ function dnsDomainIs (host, domain) { host = String(host); domain = String(domain); return host.substr(domain.length * -1) === domain; }
[-] isInNet.js
[edit]
[-] dnsDomainIs.js
[edit]
[+]
..
[-] isResolvable.js
[edit]
[-] .npmignore
[edit]
[-] package.json
[edit]
[-] dnsDomainLevels.js
[edit]
[-] dnsResolve.js
[edit]
[-] weekdayRange.js
[edit]
[-] myIpAddress.js
[edit]
[-] dateRange.js
[edit]
[-] index.js
[edit]
[-] timeRange.js
[edit]
[-] localHostOrDomainIs.js
[edit]
[-] .travis.yml
[edit]
[-] isPlainHostName.js
[edit]
[-] README.md
[edit]
[-] shExpMatch.js
[edit]
[+]
test
[-] CHANGELOG.md
[edit]