Skip to content

Commit

Permalink
docs: clarify that pattern error message applies to default email for…
Browse files Browse the repository at this point in the history
…mat too (#6517)
  • Loading branch information
vursen committed Aug 9, 2024
1 parent b0e376c commit dd0155b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,8 @@ public EmailFieldI18n setMaxLengthErrorMessage(String errorMessage) {

/**
* Gets the error message displayed when the field value does not match
* the pattern.
* the default email format, or alternatively, the custom format if
* provided with {@link EmailField#setPattern(String)}.
*
* @return the error message or {@code null} if not set
* @see EmailField#getPattern()
Expand All @@ -489,7 +490,8 @@ public String getPatternErrorMessage() {

/**
* Sets the error message to display when the field value does not match
* the pattern.
* the default email format, or alternatively, the custom format if
* provided with {@link EmailField#setPattern(String)}.
* <p>
* Note, custom error messages set with
* {@link EmailField#setErrorMessage(String)} take priority over i18n
Expand Down

0 comments on commit dd0155b

Please sign in to comment.