@hapi/address
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -0,0 +0,0 @@ ## Methods |
@@ -9,3 +9,3 @@ 'use strict'; | ||
nonAsciiRx: /[^\x00-\x7f]/, | ||
domainControlRx: /[\x00-\x20@:]/, // Control + space | ||
domainControlRx: /[\x00-\x20@\:\/]/, // Control + space + separators | ||
tldSegmentRx: /^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/, | ||
@@ -12,0 +12,0 @@ domainSegmentRx: /^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/, |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
{ | ||
"name": "@hapi/address", | ||
"description": "Email address and domain validation", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"repository": "git://github.com/hapijs/address", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -105,3 +105,3 @@ 'use strict'; | ||
// Tests adapted from https://github.com/hapijs/isemail | ||
// Tests adapted from https://github.com/skeggse/isemail | ||
// Copyright (c) 2008-2019, Eli Skeggs, Dominic Sayers, GlobeSherpa | ||
@@ -330,3 +330,6 @@ | ||
['æøå', false], | ||
['1234567890abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw@xyz.com', true, { ignoreLength: true }] | ||
['1234567890abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw@xyz.com', true, { ignoreLength: true }], | ||
['test@example.com@example.com', false], | ||
['test@example.com/path', false], | ||
['test@example.com:123', false] | ||
]; | ||
@@ -425,3 +428,6 @@ | ||
['XN--UNUP4Y', true, { minDomainSegments: 1 }], | ||
['test@example.com', false] | ||
['test@example.com', false], | ||
['test:example.com', false], | ||
['example.com:123', false], | ||
['example.com/path', false] | ||
]; | ||
@@ -428,0 +434,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
2447
78581