Module string

Source
Expand description

Validator functions for String types

Functionsยง

an_email
Validates a string is a valid email address
matching
Validates a string matches a given regex pattern
no_longer_than
Validates a string is shorter than a given length
no_shorter_than
Validates a string is longer than a given length
not_empty
Validates that a string is not empty