Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarify that pattern error message applies to default email format too #6517

Merged
merged 2 commits into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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