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

Parsing is not working for URL with scheme in uppercase #124

Open
sujith-trellix opened this issue Jan 16, 2024 · 0 comments
Open

Parsing is not working for URL with scheme in uppercase #124

sujith-trellix opened this issue Jan 16, 2024 · 0 comments

Comments

@sujith-trellix
Copy link

domain parsing is not working with scheme/url in uppercase

import tld

#scheme and URL is in upper case
test_url="HTTP://GOOGLE.COM"
domain = tld.get_fld(test_url, fail_silently=True, fix_protocol=True)

# output is None for v0.12.5 and above, `google.com` for anything below `v0.12.4`
print(domain)

This snippet is working with tld version anything below v0.12.4, and not working for anything above v0.12.5

@sujith-trellix sujith-trellix changed the title Protocol is case sensitive Parsing is not working for scheme in case uppercase Jan 16, 2024
@sujith-trellix sujith-trellix changed the title Parsing is not working for scheme in case uppercase Parsing is not working for URL with scheme in case uppercase Jan 16, 2024
@sujith-trellix sujith-trellix changed the title Parsing is not working for URL with scheme in case uppercase Parsing is not working for URL with scheme in uppercase Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant