Skip to content

Validator 13.5.1 doesn't support 163/126 format email #1543

@andyli9449

Description

@andyli9449

Describe the bug
A clear and concise description of what the bug is.
validator 13.5.1 doesn't support 163/126 format email such as hello@163.com or hello@126.com
163/126 is Netease email service。It is very popular in China
validator 13.1.1 can support 163/126

Examples
If applicable, add screenshots to help explain your problem.
code: validator_mail.js

'use strict';
  
const validator = require('validator');
console.log(validator.isEmail(process.argv[2]));

13.5.1 test case:

npm install validator@13.5.1
node validator_mail.js hello_test@163.com
false

13.1.1 test case:

npm install validator@13.1.1
node validator_mail.js hello_test@163.com
true

Additional context
Validator.js version: 13.5.1
Node.js version:v11.2.0
OS platform: [windows, linux, macOS, etc] linux Ubuntu 18.04.1 LTS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions