Module validators::functions
source · Expand description
Functions with validators.
Functions
- is_at_least_two_labels_domain
domain
oremail
orhost
orhttp_url
orhttp_ftp_url
Determine whether the input domain is has at least two labels. - is_local_domain
domain
oremail
orhost
orhttp_url
orhttp_ftp_url
Determine whether the input domain is localhost. - Determine whether the input
IpAddr
is local. - is_local_ipv4
domain
oremail
orhost
orhttp_url
orhttp_ftp_url
orip
oripv4
oripv6
Determine whether the inputIpv4Addr
is local. - is_local_ipv6
email
orhost
orhttp_url
orhttp_ftp_url
orip
oripv6
Determine whether the inputIpv6Addr
is local. - parse_ipv4_allow_an_ended_dot
domain
oremail
orhost
orhttp_url
orhttp_ftp_url
orip
oripv4
oripv6
Parse a string toIpv4Addr
, allowing an ended dot.