Skip to content
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

ASCII-only RFC Validation #300

Open
tyteen4a03 opened this issue May 26, 2021 · 1 comment
Open

ASCII-only RFC Validation #300

tyteen4a03 opened this issue May 26, 2021 · 1 comment

Comments

@tyteen4a03
Copy link

Is it possible to only enable ASCII in RFC validation?

@egulias
Copy link
Owner

egulias commented May 29, 2021

Hello @tyteen4a03 , you can create one and I would be more than happy to review and merge.
You can do so by creating:

  1. Create a comprehensive suite of tests where non-ascii should fail
  2. A new ASCIILocalPart parser extending from https://github.com/egulias/EmailValidator/blob/3.x/src/Parser/PartParser.php
  3. A new ASCIIParser by implementing https://github.com/egulias/EmailValidator/blob/3.x/src/Parser.php and reusing the DomainPartParser
  4. A new ASCIIValidator implementing the https://github.com/egulias/EmailValidator/blob/3.x/src/Validation/EmailValidation.php interface and using ASCIIParser you just created.
  5. Send a PR :)

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

No branches or pull requests

2 participants