You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think you want getDomain, not getPublicSuffix. getPublicSuffix is supposed to return the TLD-equivalent; that is, "com" from "foo.com". Try tld.getDomain('test.kyoto.jp')
I tried check this function with test data:
http://mxr.mozilla.org/mozilla-central/source/netwerk/test/unit/data/test_psl.txt?raw=1
For example:
tldjs.getPublicSuffix('test.kyoto.jp') -> kyoto.jp
but have to return:
checkPublicSuffix('test.kyoto.jp', 'test.kyoto.jp');
The text was updated successfully, but these errors were encountered: