Skip to content

added normalisation for yandex based emails#807

Merged
chriso merged 2 commits intovalidatorjs:masterfrom
vodolaz095:yandex_normalize_dedup
May 3, 2018
Merged

added normalisation for yandex based emails#807
chriso merged 2 commits intovalidatorjs:masterfrom
vodolaz095:yandex_normalize_dedup

Conversation

@vodolaz095
Copy link
Copy Markdown
Contributor

No description provided.

@vodolaz095
Copy link
Copy Markdown
Contributor Author

Yandex mail provider (top 2nd in Russia) offers this domains

  'yandex.ru',
  'yandex.ua',
  'yandex.kz',
  'yandex.com',
  'yandex.by',
  'ya.ru',

but they all are aliases of the same yandex.ru domain.
aka if i send to test@ya.ru, it is actually delivered to test@yandex.ru.

See proofs:
rryuyrg8v

my mailbox exists on all domains.

@chriso chriso merged commit 5e2cf36 into validatorjs:master May 3, 2018
@chriso
Copy link
Copy Markdown
Collaborator

chriso commented May 3, 2018

Thanks for the PR 😄

parts[0] = parts[0].toLowerCase();
}
} else if (~yandex_domains.indexOf(parts[1])) {
if (options.all_lowercase || options.yahoo_lowercase) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi there! Thanks for the PR :)
I think it shouldn't use options.yahoo_lowercase because this option is for yahoo case only

chriso added a commit that referenced this pull request May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants