reserved-email-addresses-list
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "reserved-email-addresses-list", | ||
"description": "List of 1250+ email addresses reserved for security concerns", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -41,8 +41,10 @@ # reserved-email-addresses-list | ||
The string you are comparing with must be converted to lowercase and trimmed of whitespace. It is also highly recommended that you check for strict equality, starts with, and ends with comparisons as well. | ||
The string you are comparing with must be converted to lowercase, trimmed of whitespace, and strictly converted to alphanumeric characters only. | ||
It is also highly recommended that you check for strict equality, starts with, and ends with comparisons as well. | ||
```js | ||
const reservedEmailAddressesList = require('reserved-email-addresses-list'); | ||
const str = 'Admin '.toLowerCase().trim(); | ||
const str = 'Admin***!!!'.toLowerCase().replace(/[^0-9a-z]/g, ''); | ||
const match = reservedEmailAddresssesList.find(addr => addr === str || str.startsWith(addr) || str.endsWith(addr))) | ||
@@ -49,0 +51,0 @@ |
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
20603
88