ASCII-only RFC Validation
tyteen4a03 opened this issue · 1 comments
tyteen4a03 commented
Is it possible to only enable ASCII in RFC validation?
egulias commented
Hello @tyteen4a03 , you can create one and I would be more than happy to review and merge.
You can do so by creating:
- Create a comprehensive suite of tests where non-ascii should fail
- A new ASCIILocalPart parser extending from https://github.com/egulias/EmailValidator/blob/3.x/src/Parser/PartParser.php
- A new ASCIIParser by implementing https://github.com/egulias/EmailValidator/blob/3.x/src/Parser.php and reusing the DomainPartParser
- A new ASCIIValidator implementing the https://github.com/egulias/EmailValidator/blob/3.x/src/Validation/EmailValidation.php interface and using ASCIIParser you just created.
- Send a PR :)