зеркало из https://github.com/mozilla/pjs.git
Make dnsDomainIs behave as it did in Netscape 4.x. b=76649 r=gagan@netscape.com sr=blizzard@mozilla.org
This commit is contained in:
Родитель
1c64d22593
Коммит
ab65e0c9a4
|
@ -180,7 +180,8 @@ var dns = Components.classes[kDNS_CONTRACTID].getService(nsIDNSService);
|
|||
|
||||
var pacUtils =
|
||||
"function dnsDomainIs(host, domain) {\n" +
|
||||
" return (host.replace(/\\w*/, '') == domain);\n" +
|
||||
" return (host.length >= domain.length &&\n" +
|
||||
" host.substring(host.length - domain.length) == domain);\n" +
|
||||
"}\n" +
|
||||
|
||||
"function dnsDomainLevels(host) {\n" +
|
||||
|
|
Загрузка…
Ссылка в новой задаче