-
-
Notifications
You must be signed in to change notification settings - Fork 17
Become RFC 5322-compliant #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Should hopefully be non-breaking |
Added TypeScript devdep to make tests pass |
Regex is now quite large |
Yeah, let's disable that by default. I will do a major version anyway. |
Co-authored-by: Sindre Sorhus <[email protected]>
Co-Authored-By: Sindre Sorhus <[email protected]>
Co-Authored-By: Sindre Sorhus <[email protected]>
The perfect email regex
It turns out that the parts of rfc 5322 responsible for defining what an email is, can be cross-compiled 1:1 to regex. At some point I will publish this abnf to regex converter (update: published at https://github.com/Richienb/abnf-regex). (I am also waiting for this PR which would improve the optimisation phase DmitrySoshnikov/regexp-tree#269)
TODO:
&
? Add option to allow&
#15Fixes #9, fixes #2, fixes #15