Describe the bug
We changed email regex patterns in one place to Angular built-in, but kept our own regex in another place. We may change both?
Previously changed email regex pattern:
#4999
Stil remaining DSpace’s own email regex pattern for the feedback form:
|
email: ['', [Validators.required, Validators.pattern('^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$')]], |
Expected behavior
We should validate all email address input fields identically and get rid of custom regex code.
Related work
#4999
Describe the bug
We changed email regex patterns in one place to Angular built-in, but kept our own regex in another place. We may change both?
Previously changed email regex pattern:
#4999
Stil remaining DSpace’s own email regex pattern for the feedback form:
dspace-angular/src/app/info/feedback/feedback-form/feedback-form.component.ts
Line 58 in 444edd4
Expected behavior
We should validate all email address input fields identically and get rid of custom regex code.
Related work
#4999