mirror of
https://github.com/joohoi/acme-dns.git
synced 2025-07-20 04:37:36 +07:00
relax subdomain validation from UUID to actual subdomain (#243)
This commit is contained in:
@ -55,7 +55,9 @@ func TestGetValidSubdomain(t *testing.T) {
|
||||
output bool
|
||||
}{
|
||||
{"a097455b-52cc-4569-90c8-7a4b97c6eba8", true},
|
||||
{"a-97455b-52cc-4569-90c8-7a4b97c6eba8", false},
|
||||
{"a-97455b-52cc-4569-90c8-7a4b97c6eba8", true},
|
||||
{"foo.example.com", false},
|
||||
{"foo-example-com", true},
|
||||
{"", false},
|
||||
{"&!#!25123!%!'%", false},
|
||||
} {
|
||||
|
Reference in New Issue
Block a user