normalize-email
Advanced tools
Comparing version 0.0.1 to 1.0.0
@@ -22,3 +22,6 @@ 'use strict' | ||
username = username.split('+')[0] | ||
username = username.replace(/\./g, '') | ||
if(!/hotmail\.com$/.test(domain)) { | ||
username = username.replace(/\./g, '') | ||
} | ||
} | ||
@@ -25,0 +28,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "John Otander", | ||
"version": "0.0.1", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
@@ -8,0 +8,0 @@ "directories": { |
@@ -18,6 +18,3 @@ var assert = require('assert') | ||
'johnotander@HOTMAIL.com', | ||
'johnotander+foobar@hotmail.com', | ||
'john.o.t.a.n.d.er+foobar@hotmail.com', | ||
'JOHN.o.t.a.n.d.er+foobar@hotmail.com', | ||
'john.otander@hotmail.com' | ||
'Johnotander@hotmail.com' | ||
] | ||
@@ -49,2 +46,6 @@ | ||
it('should not remove dots from hotmail emails', function() { | ||
assert.equal(normalizeEmail('john.otander@hotmail.com'), 'john.otander@hotmail.com') | ||
}) | ||
it('should normalize live emails', function() { | ||
@@ -51,0 +52,0 @@ liveEmailsToNormalize.forEach(function(email) { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5510
73
0