Skip to content

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
@github-actions
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
@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