Allow plus on email (#564)

This commit is contained in:
OniriCorpe 2024-03-31 16:05:37 +02:00 committed by GitHub
commit dedaf98c50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,7 @@ const dynDomain = helpers.regex(
new RegExp(`^(?:xn--)?[\\da-z-${nonAsciiWordCharacters}]+$`),
)
const emailLocalPart = helpers.regex('emailLocalPart', /^[\w.-]+$/)
const emailLocalPart = helpers.regex('emailLocalPart', /^[\w+.-]+$/)
const emailForwardLocalPart = helpers.regex(
'emailForwardLocalPart',