sane-email-validation
Advanced tools
Comparing version 1.1.0 to 2.0.0
@@ -21,2 +21,6 @@ exports = module.exports = isEmail; | ||
if ( parts[ 0 ].substr( -1 ) === "." ) { | ||
return false; | ||
} | ||
return true; | ||
@@ -23,0 +27,0 @@ } |
{ | ||
"name": "sane-email-validation", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"author": "Scott González <scott.gonzalez@gmail.com> (http://scottgonzalez.com)", | ||
@@ -5,0 +5,0 @@ "description": "Sanely validate email addresses, based on HTML5's definition of email addresses", |
@@ -12,3 +12,3 @@ var isEmail = require( "../../index" ); | ||
"invalid": function( test ) { | ||
test.expect( 7 ); | ||
test.expect( 8 ); | ||
@@ -31,2 +31,4 @@ var longLabel = new Array( 65 ).join( "a" ); | ||
"Cannot contain domain label >63 characters." ); | ||
test.strictEqual( isEmail( "debt.@example.com" ), false, | ||
"Cannot end name with dot." ); | ||
test.done(); | ||
@@ -58,3 +60,3 @@ }, | ||
"invalid": function( test ) { | ||
test.expect( 7 ); | ||
test.expect( 8 ); | ||
@@ -77,2 +79,4 @@ var longLabel = new Array( 65 ).join( "a" ); | ||
"Cannot contain domain label >63 characters." ); | ||
test.strictEqual( isNotEmail( "debt.@example.com" ), true, | ||
"Cannot end name with dot." ); | ||
test.done(); | ||
@@ -79,0 +83,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10859
157
9