diff --git a/src/lib/isDate.js b/src/lib/isDate.js index f0b28917a..22b644bec 100644 --- a/src/lib/isDate.js +++ b/src/lib/isDate.js @@ -22,7 +22,7 @@ function zip(date, format) { } export default function isDate(input, options) { - if (typeof options === 'string') { // Allow backward compatbility for old format isDate(input [, format]) + if (typeof options === 'string') { // Allow backward compatibility for old format isDate(input [, format]) options = merge({ format: options }, default_date_options); } else { options = merge(options, default_date_options); diff --git a/src/lib/isEmail.js b/src/lib/isEmail.js index 12938765e..ecd88d106 100644 --- a/src/lib/isEmail.js +++ b/src/lib/isEmail.js @@ -20,7 +20,8 @@ const default_email_options = { /* eslint-disable max-len */ /* eslint-disable no-control-regex */ const splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)