"Email validation, done right."
submitted by chupocabra
@DeveloperMemes The error message should be "[…] at least 5 characters […]" (>4), not "[…] at least 4 characters […]" (≥4)
Strictly speaking, the check is wrong, as it will not consider a@b a valid address, nor a@xy - both of which are.
The check should be email.includes('@') && email.length >= 3. That is true for every valid email address, and it is false only for invalid ones.
cybre.town is an instance of Masterdon, a decentrialized and open source social media plattform. This instance is especially about tech/cyber stuff and is also available inside the tor network. - The name is inspired by cybre.space.