websanova / js-url

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

host and domain are reversed #2

Closed chetan closed 12 years ago

chetan commented 12 years ago

Given the example -

$.url('domain'); // www.domain.com $.url('host'); // domain.com

'domain.com' is the domain, and 'www.domain.com' is the host.

websanova commented 12 years ago

Fixed, also renamed host to hostname