-
Notifications
You must be signed in to change notification settings - Fork 1
URIHelpers.Hostname.TailMatch
Andrew Lambert edited this page Jun 13, 2017
·
5 revisions
URIHelpers.Hostname.TailMatch
Function TailMatch(OtherHost As URIHelpers.Hostname, BinaryCompare As Boolean = True) As Boolean
Returns True
if Self
and OtherHost
end in the same subdomains.
This table lists the result of several example comparisons:
example.com |
www.example.com |
api.example.com |
api.www.example.com |
www.example.net |
|
---|---|---|---|---|---|
example.com |
True | True | True | True | False |
www.example.com |
True | True | False | True | False |
api.example.com |
True | False | True | False | False |
api.www.example.com |
True | True | False | True | False |
www.example.net |
False | False | False | False | True |