diff --git a/README.md b/README.md index c7518fd41..5b927ac13 100644 --- a/README.md +++ b/README.md @@ -215,7 +215,8 @@ Remember, validating can be troublesome sometimes. See [A list of articles about ## Contributing -We welcome contributions from the community! If you're interested in contributing to this project, please read our [Contribution Guide](CONTRIBUTING.md) to get started. + +Community contributions are highly valued! If you’re interested in helping us improve this project, please check out our [Contribution Guide](CONTRIBUTING.md) to get started. ## License diff --git a/test/validators.test.js b/test/validators.test.js index 4df91395c..0c4854fc4 100644 --- a/test/validators.test.js +++ b/test/validators.test.js @@ -74,6 +74,60 @@ describe('Validators', () => { '"foobar@gmail.com', '"foo"bar@gmail.com', 'foo"bar"@gmail.com', + 'plainaddress', + '@missingusername.com', + 'username@.missingdomain', + 'username@domain..com', + 'username@-domain.com', + 'username@domain-.com', + 'username@domain.com-', + 'user@name@domain.com', + 'user@domain.c', + '.username@domain.com', + 'username.@domain.com', + 'username@domain_com.com', + 'username@domain..com', + 'username@domain,com', + 'username@domain;com', + 'username@domain#com', + 'username@domain$com', + 'username@domain!com', + 'username@domain%com', + 'username@domain^com', + 'username@domain&com', + 'username@domain*com', + 'username@domain(com', + 'username@domain)com', + 'username@domain=com', + 'username@domain+com', + 'username@domain|com', + 'username@domain~com', + 'username@domain/com', + 'username@domain\com', + 'username@domain:com', + 'username@domain"com', + 'username@domain\'com', + 'username@domain`com', + 'username@domain@domain.com', + 'user@domain..com..', + 'user@domain.-com', + 'user@domaincom', + 'user@domain com', + 'user@domain\tcom', + 'user@domain\ncom', + 'user@domain\0com', + 'user@domain\u2028com', + 'user@domain\u2029com', + 'user@dom@ain.com', + 'user@domain.com..', + 'user@domain..com', + 'user@domain_com', + 'user@-domain.com', + '-user@domain.com', + 'user@domain.corporate', + 'user@localhost', + 'user@.localhost.com', + 'user@.com' ], }); });