aziraphale / email-address-validator Goto Github PK
View Code? Open in Web Editor NEWFork of AddedBytes' EmailAddressValidator class
Fork of AddedBytes' EmailAddressValidator class
I mentioned it in #3 already, but to make sure it's not forgotten, here's a proper issue.
https://packagist.org/packages/aziraphale/email-address-validator currently lists version 2.0.0 from 2015 only. A new git tag should be created to make the recent changes available via composer.
There are multiple problems with the tests:
EmailAddressValidator::check_email_address()
but should be calling EmailAddressValidator::checkEmailAddress()
Even though the email spec say the local part should be at max 64 characters, the comment says servers are encouraged to accept more than 64. This library is used by Dokuwiki to validate emails. Todoist uses emails where the local part is longer than 64 characters. Given that there are "valid" emails longer than 64 characters, this should be removed, increased, or at least adjustable by a parameter. It is better to let an "invalid" email through than to block a valid email. An invalid email will fail regardless upon being sent (as if it is valid format but just hasn't been created). A "valid" email getting rejected prevents it from being used at all with no possibility of a workaround.
Here is the line in question:
We're currently using a patched version of the old Google Code version which has an option to allow local addresses (see 02700828f76adcfc63a9dafe75ffa941cdb9831b).
It would be possible to implement this in your version by passing a second parameter to checkEmailAddress()
and checkDomainPotion()
but I wonder if making this static was such a good idea...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.