Skip to content

Commit

Permalink
fix(docs): fix simple typo (#1428)
Browse files Browse the repository at this point in the history
There is a small typo in es/lib/normalizeEmail.js, lib/normalizeEmail.js, src/lib/normalizeEmail.js, validator.js.

Should read `preferred` rather than `preffered`.
  • Loading branch information
timgates42 authored Sep 6, 2020
1 parent 491d9c0 commit e3f9d2b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions es/lib/normalizeEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ export default function normalizeEmail(email, options) {
parts[0] = parts[0].toLowerCase();
}

parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preffered
parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preferred
} else if (options.all_lowercase) {
// Any other address
parts[0] = parts[0].toLowerCase();
}

return parts.join('@');
}
}
4 changes: 2 additions & 2 deletions lib/normalizeEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function normalizeEmail(email, options) {
parts[0] = parts[0].toLowerCase();
}

parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preffered
parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preferred
} else if (options.all_lowercase) {
// Any other address
parts[0] = parts[0].toLowerCase();
Expand All @@ -148,4 +148,4 @@ function normalizeEmail(email, options) {
}

module.exports = exports.default;
module.exports.default = exports.default;
module.exports.default = exports.default;
2 changes: 1 addition & 1 deletion src/lib/normalizeEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export default function normalizeEmail(email, options) {
if (options.all_lowercase || options.yandex_lowercase) {
parts[0] = parts[0].toLowerCase();
}
parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preffered
parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preferred
} else if (options.all_lowercase) {
// Any other address
parts[0] = parts[0].toLowerCase();
Expand Down
2 changes: 1 addition & 1 deletion validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2954,7 +2954,7 @@ function normalizeEmail(email, options) {
parts[0] = parts[0].toLowerCase();
}

parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preffered
parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preferred
} else if (options.all_lowercase) {
// Any other address
parts[0] = parts[0].toLowerCase();
Expand Down

0 comments on commit e3f9d2b

Please sign in to comment.