Repository navigation
Expand email validation description in API doc - #32747
jbogarthyde wants to merge 1 commit into
Conversation
|
You can preview e1bd4fa at https://pr32747-e1bd4fa.ngbuilds.io/. |
|
|
|
You can preview 902a717 at https://pr32747-902a717.ngbuilds.io/. |
902a717 to
154031d
Compare
|
You can preview 154031d at https://pr32747-154031d.ngbuilds.io/. |
154031d to
91a2494
Compare
|
You can preview 91a2494 at https://pr32747-91a2494.ngbuilds.io/. |
91a2494 to
fd19794
Compare
|
You can preview fd19794 at https://pr32747-fd19794.ngbuilds.io/. |
fd19794 to
5ae3b7d
Compare
|
You can preview 5ae3b7d at https://pr32747-5ae3b7d.ngbuilds.io/. |
5ae3b7d to
19cacaf
Compare
|
You can preview 19cacaf at https://pr32747-19cacaf.ngbuilds.io/. |
19cacaf to
3469acc
Compare
|
You can preview 3469acc at https://pr32747-3469acc.ngbuilds.io/. |
3469acc to
f9ea84d
Compare
|
You can preview f9ea84d at https://pr32747-f9ea84d.ngbuilds.io/. |
f9ea84d to
e3e9175
Compare
|
You can preview e3e9175 at https://pr32747-e3e9175.ngbuilds.io/. |
e3e9175 to
43967d2
Compare
Previously, there was no documentation of what `Validators.email()` expects as a valid e-mail address, making it difficult for people to determine whether it covers their requirements or not. Even more so that the used pattern slightly deviates from the [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address). One's only option was to look at the source code and try to decipher the regexp pattern. This commit adds a high-level description of the validator and mentions its similarity to and differences from the WHATWG version. It also adds a brief explanation of the regexp's behavior and references for more information in the source code to provide more context to maintainers/users trying to understand the implementation in the future. Fixes angular#18985 Fixes angular#25186 Closes angular#32747
|
Superseded by #32961 |
Previously, there was no documentation of what `Validators.email()` expects as a valid e-mail address, making it difficult for people to determine whether it covers their requirements or not. Even more so that the used pattern slightly deviates from the [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address). One's only option was to look at the source code and try to decipher the regexp pattern. This commit adds a high-level description of the validator and mentions its similarity to and differences from the WHATWG version. It also adds a brief explanation of the regexp's behavior and references for more information in the source code to provide more context to maintainers/users trying to understand the implementation in the future. Fixes #18985 Fixes #25186 Closes #32747 PR Close #32961
Previously, there was no documentation of what `Validators.email()` expects as a valid e-mail address, making it difficult for people to determine whether it covers their requirements or not. Even more so that the used pattern slightly deviates from the [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address). One's only option was to look at the source code and try to decipher the regexp pattern. This commit adds a high-level description of the validator and mentions its similarity to and differences from the WHATWG version. It also adds a brief explanation of the regexp's behavior and references for more information in the source code to provide more context to maintainers/users trying to understand the implementation in the future. Fixes #18985 Fixes #25186 Closes #32747 PR Close #32961
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Email validation pattern is not described, making it difficult to decide between
Validators.email()andValidators.pattern().Issue Number:
#18985
#25186
What is the new behavior?
Describe
EMAIL_REGEXPand referencepattern()as an alternative to the default behavior.Does this PR introduce a breaking change?