mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-02-22 17:45:34 -07:00
13 lines
207 B
Go
13 lines
207 B
Go
package nameserver
|
|
|
|
import "strings"
|
|
|
|
func sanitizeDomainQuestion(d string) string {
|
|
dom := strings.ToLower(d)
|
|
firstDot := strings.Index(d, ".")
|
|
if firstDot > 0 {
|
|
dom = dom[0:firstDot]
|
|
}
|
|
return dom
|
|
}
|