Description
rewrite_bare_host_at_boundaries in crates/common/src/host_rewrite.rs has complex boundary detection logic and no direct tests. This leaves host rewriting vulnerable to regressions around subdomains, punctuation, word boundaries, and host:port forms.
Done when
Affected area
- HTML processing / JS injection
Additional context
Source: test_gap.md, section URL Rewriting Boundary Detection.
Parent issue: #396