defunctzombie / node-url

node.js core url module as a module
MIT License
376 stars 96 forks source link

subdomain parser #8

Closed jonua closed 10 years ago

jonua commented 10 years ago

Hello, Sorry for my english:) It is possible to add check of subdomains? example:

console.log(url.parse("http://sdf.sdf.hh.ru/asd/sad/index.php?sdfsdf=3&Sdfsdf=324"));
...
hostname: 'sdf.sdf.hh.ru',
...
domain: 'hh.ru',
subdomains: 'sdf.sdf',
...
defunctzombie commented 10 years ago

This module is a copy of the core node url parsing module. If they support subdomains then this module will, otherwise we do not deviate functionality for now. Post on the node.js issue tracker first. Thanks!