Remove duplicated '-' check

This commit is contained in:
Melon 2025-03-25 00:14:42 +00:00
parent 6897df5cd5
commit fee7ed1e28
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -4,10 +4,6 @@ func IsValidSite(site string) bool {
if len(site) < 1 || site[0] == '-' {
return false
}
switch site[0] {
case '-':
return false
}
return containsOnly(site, func(r rune) bool {
return isAlphanumericOrDash(r) || r == '.'
})