bjarneo / extract-domain

Extract domain name from an URL
https://www.npmjs.com/package/extract-domain
MIT License
31 stars 4 forks source link

unable to extract domain when the non-domain part is less than 5 chars #2

Closed thenextbiglogicprovider closed 5 years ago

thenextbiglogicprovider commented 5 years ago

I tried to extract the domain from this username 'test@something.com' and got a blank string but when i tried with 'test1@something.com' i got the domain part 'something.com'.

please make this one work for less than 5 chars too.

bjarneo commented 5 years ago

Oh, that's not good. I'll look into this asap :) Thanks for reaching out!

bjarneo commented 5 years ago

@thenextbiglogicprovider it has been fixed. Version 2.0.6.