Improve DNS validation regex doc
This commit is contained in:
@@ -18,7 +18,7 @@ var (
|
||||
`\.` + // ending with a dot
|
||||
`)*` + // end subdomain group, allow any number of subdomains
|
||||
`(xn--)?` + // TLD idn prefix
|
||||
`[a-z0-9_-]{1,63}` + // TLD main chunk with at least one character
|
||||
`[a-z0-9_-]{1,63}` + // TLD main chunk with at least one character (for custom ones)
|
||||
`\.` + // ending with a dot
|
||||
`$`, // match end
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user