MCPcopy
hub / github.com/XTLS/RealiTLScanner / ValidateDomainName

Function ValidateDomainName

utils.go:97–100  ·  view source on GitHub ↗
(domain string)

Source from the content-addressed store, hash-verified

95 return hostChan
96}
97func ValidateDomainName(domain string) bool {
98 r := regexp.MustCompile(`(?m)^[A-Za-z0-9\-.]+$`)
99 return r.MatchString(domain)
100}
101func ExistOnlyOne(arr []string) bool {
102 exist := false
103 for _, item := range arr {

Callers 1

IterateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected