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

(bug) Fix subdomain import for subdomains with suffix more than 4 chars Fixes #1128 #1340

Conversation

yogeshojha
Copy link
Owner

The current get_domain_from_subdomain function was not accurately handling all types of subdomains, especially those with less common or new TLDs. It also lacked proper validation for the returned domains.

This PR introduces a refactored get_domain_from_subdomain function that combines the strengths of tldextract, a custom fallback method.

@yogeshojha yogeshojha self-assigned this Jul 30, 2024
@yogeshojha yogeshojha linked an issue Jul 30, 2024 that may be closed by this pull request
1 task
Copy link
Contributor

👋 Hi @yogeshojha,
Thank you for sending this pull request.
Please make sure you have followed our contribution guidelines.
We will review this PR as soon as possible. Thank you for your patience.

@yogeshojha yogeshojha merged commit ff7a64d into master Jul 30, 2024
6 checks passed
@yogeshojha yogeshojha deleted the 1128-bug-subdomain-import-could-fail-if-suffix-more-than-4-chars branch July 30, 2024 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Subdomain import could fail if suffix more than 4 chars
1 participant