allow wildcard

This commit is contained in:
Pascal Fischer
2025-08-07 17:53:39 +02:00
parent b5da6d3f8e
commit 1c1706753d
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ func TestValidateDomains(t *testing.T) {
{
name: "Multiple domains valid and invalid",
domains: []string{"google.com", "invalid,nbdomain.com", "münchen.de"},
expected: List{"google.com"},
expected: nil,
wantErr: true,
},
{
@@ -146,9 +146,9 @@ func TestValidateDomainsList(t *testing.T) {
wantErr: true,
},
{
name: "Valid wildcard domain",
name: "Invalid wildcard domain",
domains: []string{"*.example.com"},
wantErr: false,
wantErr: true,
},
{
name: "Wildcard with leading dot - invalid",