barseghyanartur/tld

Parsing is not working for URL with scheme in uppercase

sujith-trellix opened this issue · 0 comments

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