hmpo-form-wizard
Advanced tools
Comparing version 11.2.1 to 11.3.0
@@ -26,3 +26,3 @@ 'use strict'; | ||
email(value) { | ||
return value === '' || validators.regex(value, /^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,6}$/i); | ||
return value === '' || validators.regex(value, /^[a-z0-9._%+-]+@([a-z0-9]+([a-z0-9-]*[a-z0-9]+)?\.)+[a-z]{2,6}$/i); | ||
}, | ||
@@ -29,0 +29,0 @@ |
{ | ||
"name": "hmpo-form-wizard", | ||
"version": "11.2.1", | ||
"version": "11.3.0", | ||
"description": "Routing and request handling for a multi-step form processes", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">=4" | ||
"node": ">=8" | ||
}, | ||
@@ -32,3 +32,3 @@ "bugs": { | ||
"hmpo-model": "^2.1.3", | ||
"json5": "^2.1.0", | ||
"json5": "^2.1.1", | ||
"moment": "^2.17.1", | ||
@@ -42,11 +42,11 @@ "underscore": "^1.8.2" | ||
"chai": "^4.1.2", | ||
"eslint": "^5.16.0", | ||
"eslint": "^6.7.1", | ||
"express": "^4.17.1", | ||
"istanbul": "^0.4.3", | ||
"mocha": "^6.2.0", | ||
"proxyquire": "^2.1.1", | ||
"mocha": "^6.2.2", | ||
"proxyquire": "^2.1.3", | ||
"reqres": "^2.0.0", | ||
"sinon": "^7.4.0", | ||
"sinon": "^7.5.0", | ||
"sinon-chai": "^3.0.0" | ||
} | ||
} |
@@ -72,3 +72,6 @@ 'use strict'; | ||
'test.com@', | ||
'test@test@test.com' | ||
'test@test@test.com', | ||
'test@.example.com', | ||
'test@example-.com', | ||
'test@-.com' | ||
]; | ||
@@ -89,3 +92,4 @@ _.each(inputs, i => { | ||
'test+suffix@digital.cabinet-office.gov.uk', | ||
'test.suffix@digital.cabinet-office.gov.uk' | ||
'test.suffix@digital.cabinet-office.gov.uk', | ||
'test@0-0-0-0.0-0-0.com' | ||
]; | ||
@@ -92,0 +96,0 @@ _.each(inputs, i => { |
Sorry, the diff of this file is not supported yet
374582
8690
+ Addedbody-parser@2.1.0(transitive)
+ Addedqs@6.14.0(transitive)
+ Addedrouter@2.1.0(transitive)
- Removedarray-flatten@3.0.0(transitive)
- Removedbody-parser@2.0.2(transitive)
- Removeddebug@3.1.0(transitive)
- Removedrouter@2.0.0(transitive)
Updatedjson5@^2.1.1