Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What to do with url containing only the tld? #51

Closed
Yomguithereal opened this issue Jul 9, 2018 · 2 comments · Fixed by #61
Closed

What to do with url containing only the tld? #51

Yomguithereal opened this issue Jul 9, 2018 · 2 comments · Fixed by #61
Assignees
Labels
Milestone

Comments

@Yomguithereal
Copy link
Contributor

@barseghyanartur I have a question: what should we do with urls such as:

http://cloud.fedoraproject.org

where the whole domain string is just a tld?

I know those cases are edge and probably illegal but they do work in browsers. Currently return values for those cases are not consistent (either a false or empty or return value).

I propose we return the the tld and blank the domain/subdomain etc.

@barseghyanartur
Copy link
Owner

@Yomguithereal:

I agree. Let's just return the tld.

In case of an object domain/subdomain properties shall be blank. Perhaps the fld shall in this case be just equal to tld.

@barseghyanartur barseghyanartur added this to the 0.10 milestone Jul 9, 2018
@Yomguithereal
Copy link
Contributor Author

I'll draft a PR to support this when I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants