fix(fqdn): allow hyphens in last domain label (#1548)
## Fixes Or Enhances ## Summary The `fqdn` validator was rejecting valid domain names that contain hyphens in the last label (e.g. `test-site-http.test-site`), because the TLD character class `[a-zA-Z0-9]` did not include `-`. ## Change One character added to the last label's character class in `fqdnRegexStringRFC1123`: No other parts of the regex were modified. ## Test Added regression case to [TestFQDNValidation](cci:1://file:///Users/admin/validator/validator_test.go:10628:0-10676:1): - `test-site-http.test-site` → valid @go-playground/validator-maintainers
A
alihasan070707 committed
b9258bd2b7bbab41c3d99090cac4a659c5f1a60c
Parent: b9f1d79
Committed by GitHub <noreply@github.com>
on 3/27/2026, 10:00:35 AM