mirror of
https://github.com/safing/portmaster
synced 2025-09-02 18:49:14 +00:00
Improve DNS validation regex doc
This commit is contained in:
parent
15ff395d43
commit
362d98727b
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ var (
|
||||||
`\.` + // ending with a dot
|
`\.` + // ending with a dot
|
||||||
`)*` + // end subdomain group, allow any number of subdomains
|
`)*` + // end subdomain group, allow any number of subdomains
|
||||||
`(xn--)?` + // TLD idn prefix
|
`(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
|
`\.` + // ending with a dot
|
||||||
`$`, // match end
|
`$`, // match end
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue