You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Normalize domain input consistently and accept common paste formats (URL, port, *., IDN) #54
Inconsistent results. The same target produces different output depending on how it was given, which breaks dedup, diffing and downstream tooling.
Unhelpful errors. New users paste URLs and wildcards and get a bare "invalid domain format" error.
Evidence
A positional domain is validated but not normalized (main.go:253-258, and the TUI's internal/tui/form.go:354-360). -dL entries are lowercased and have trailing dots stripped (main.go:279).
_dmarc.example.com, even though wordlist entries allow underscores (internal/wordlist/reader.go:14).
Suggested approach
Add validate.NormalizeDomain (trim spaces, lowercase, drop trailing dot) and use it in the positional, -dL and TUI paths.
Strip a scheme, path or port, or a leading *., and print a one-line notice.
Convert IDNs to punycode with golang.org/x/net/idna.
Allow underscores consistently.
Add targeted hints such as "looks like a URL; pass just the host".
Done when
All entry points produce identical output for Example.COM., example.com and https://example.com/, with table tests.
Activity
fix(ci): drop golang.org/x/net to clear govulncheck