websanova / js-url

url() - A simple, lightweight url parser for JavaScript
http://www.websanova.com
MIT License
1.93k stars 204 forks source link

domain parse error #62

Closed riyue closed 6 years ago

riyue commented 7 years ago

url('domain','http://mall.belle.net.cn/') now this result is wrong: net.cn

correct result: belle.net.cn

websanova commented 7 years ago

Yes, I started the to version a while ago and I suppose I should put some restriction on it like gtld or something.

The full list is quite massive.

https://publicsuffix.org/list/public_suffix_list.dat

On Oct 20, 2017 10:14 AM, "日 月" notifications@github.com wrote:

url('domain','http://mall.belle.net.cn/') now this result is wrong: net.cn

correct result: belle.net.cn

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/websanova/js-url/issues/62, or mute the thread https://github.com/notifications/unsubscribe-auth/ABkcy5u9bDWZjqk9FbPhf0d23oaqqP1kks5suBABgaJpZM4QAIjn .