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 is wrong #60

Closed riyue closed 7 years ago

riyue commented 7 years ago

use this url 'https://test-passport.jindashi.cn/TDOA/page/pfyh/quick.html' the result domain is hi.cn not jindashi.cn

websanova commented 7 years ago

Surprised this issue didn't come up sooner :P

It's fixed in v2.5.1 (node package also).

Thx :-)