Skip to content

Commit 341178b

Browse files
committed
Upgrade isemail to 2.0.0
1 parent ca6d3c3 commit 341178b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/string.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ internals.String.prototype.email = function (isEmailOptions) {
198198
return this._test('email', isEmailOptions, (value, state, options) => {
199199

200200
try {
201-
const result = Isemail(value, isEmailOptions);
201+
const result = Isemail.validate(value, isEmailOptions);
202202
if (result === true || result === 0) {
203203
return null;
204204
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"hoek": "3.x.x",
1717
"topo": "2.x.x",
18-
"isemail": "1.x.x",
18+
"isemail": "2.x.x",
1919
"moment": "2.x.x"
2020
},
2121
"devDependencies": {

0 commit comments

Comments
 (0)