This replaces our email regex patter with a better one. The previous one generated very long string patterns which does closely represent email addresses; I believe this one generates patterns which more closely resembles an actual email.
For example with the previous pattern: tefsdlfsjfsklfjskljfjklsst@te*&&**&&&&&&%^%^%...st.comsdklfjlsdkfjskldfjsldkfj is a valid email.
This replaces our email regex patter with a better one. The previous one generated very long string patterns which does closely represent email addresses; I believe this one generates patterns which more closely resembles an actual email.
For example with the previous pattern:
tefsdlfsjfsklfjskljfjklsst@te*&&**&&&&&&%^%^%...st.comsdklfjlsdkfjskldfjsldkfj
is a valid email.Related to https://github.com/jhipster/generator-jhipster/issues/10704