The following statement is true (exact match):
localHostOrDomainIs("www.example.com", "www.example.com")
The following statement is true (host name match, domain name not specified):
localHostOrDomainIs("www", "www.example.com")
The following statement is false (domain name mismatch):
localHostOrDomainIs("www.mcom.com", "www.example.com")
The following statement is false (host name mismatch):
localHostOrDomainIs("home.example.com", "www.example.com")