nyinaa.validators

Undocumented in source.

Members

Functions

isEmail
bool isEmail(string email)

Checks whether a string has an email address format

isIP
bool isIP(string ip)

Checks whether a string has an IP address format (both IPv4 and IPv6)

isIPv4
bool isIPv4(string ip)

Checks whether a string has an IPv4 address format

isIPv6
bool isIPv6(string ip)

Checks whether a string has an IPv6 address format

isUUID
bool isUUID(string uuid)

Checks whether a string has a UUID format. Matches any UUID format.

isUUIDv3
bool isUUIDv3(string uuid)

Checks whether a string has a UUID version 3 format

isUUIDv4
bool isUUIDv4(string uuid)

Checks whether a string has a UUID version 4 format

isUUIDv5
bool isUUIDv5(string uuid)

Checks whether a string has a UUID version 5 format

Meta