Liking cljdoc? Tell your friends :D

brazilian-utils.email.core


is-valid?clj/s

(is-valid? email)

Validates whether a given value is a well-formed email address.

Args: email - The value to validate as an email address.

Returns: true if the provided value is a string that satisfies all email validation checks; otherwise false.

Examples: (is-valid? "user@example.com") ;; => true (is-valid? "") ;; => false (is-valid? nil) ;; => false (is-valid? "verylong...@ex.com") ;; => false if exceeds configured limits

Validates whether a given value is a well-formed email address.

Args:
  email - The value to validate as an email address.

Returns:
  true if the provided value is a string that satisfies all email validation checks; 
  otherwise false.

Examples:
  (is-valid? "user@example.com") ;; => true
  (is-valid? "")                 ;; => false
  (is-valid? nil)                  ;; => false
  (is-valid? "verylong...@ex.com") ;; => false if exceeds configured limits
sourceraw docstring

validation-errorsclj/s

(validation-errors email)

Validates an email and returns detailed error information if invalid.

Returns an empty vector for valid emails, or a vector of error message strings for invalid emails.

Args: email - The value to validate as an email address.

Returns: Empty vector if the email is valid, or a vector of error message strings if invalid.

Examples: (validation-errors "user@example.com") ;; => [] (validation-errors "") ;; => ["Email cannot be blank"] (validation-errors nil) ;; => ["should be a string"]

Validates an email and returns detailed error information if invalid.

Returns an empty vector for valid emails, or a vector of error message strings for invalid emails.

Args:
  email - The value to validate as an email address.

Returns:
  Empty vector if the email is valid, or a vector of error message strings if invalid.

Examples:
  (validation-errors "user@example.com") ;; => []
  (validation-errors "") ;; => ["Email cannot be blank"]
  (validation-errors nil) ;; => ["should be a string"]
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close