Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

nlevchuk
Copy link
Contributor

@nlevchuk nlevchuk commented Nov 7, 2024

First of all, I'd like to thank all the contributors for their time and effort.

Recently, I've noticed that the EMAIL_REGEXP constant fails to handle a situations where there are leading or trailing dots in the local part of an email address. It's worth noting that while all major email providers permit the use of dots between characters, they prohibit their placement at the beginning or end of the local part.
I didn't find the exact information about the leading and trailing dots in the RFCs (5321, 5322). However, I believe it's practically useful to specify them in the regex.

Examples of an invalid email:

@nobu nobu merged commit 788274b into ruby:master Jul 12, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants