Skip to content

Accept trailing-dot FQDN hosts in domain_filter#145

Open
santhreal wants to merge 2 commits into
adbar:masterfrom
santhreal:fix/domain-filter-trailing-dot-fqdn
Open

Accept trailing-dot FQDN hosts in domain_filter#145
santhreal wants to merge 2 commits into
adbar:masterfrom
santhreal:fix/domain-filter-trailing-dot-fqdn

Conversation

@santhreal

Copy link
Copy Markdown
Contributor

check_url("http://example.com./page") returned None because domain_filter rejected trailing-dot FQDN netlocs, while extract_domain already strips that form and returns example.com.

Reuse and extend _strip_trailing_dot for host and host:port forms before validation.

extract_domain already strips a single trailing DNS dot, but check_url
rejected the same hosts via domain_filter, dropping valid crawl URLs.
extract_domain already strips a single trailing DNS dot, but check_url
rejected the same hosts via domain_filter, dropping valid crawl URLs.
Reuse and extend _strip_trailing_dot for host and host:port forms.
@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.78%. Comparing base (6f0f507) to head (c905020).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #145   +/-   ##
=======================================
  Coverage   99.77%   99.78%           
=======================================
  Files          14       14           
  Lines         905      912    +7     
  Branches      173      175    +2     
=======================================
+ Hits          903      910    +7     
  Misses          2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

1 participant