GithubHelp home page GithubHelp logo

Comments (7)

WikiRik avatar WikiRik commented on July 1, 2024 2

I'm not knowledgeable enough about the exact email standards to determine if this is a bug or not, but you can set the allow_utf8_local_part option to false to mark the email address you provided as invalid.
From the README; "If allow_utf8_local_part is set to false, the validator will not allow any non-English UTF8 character in email address' local part"

from validator.js.

Sumit-tech-joshi avatar Sumit-tech-joshi commented on July 1, 2024 1

Created pull request for the bug fix: #2384

from validator.js.

RaminGe avatar RaminGe commented on July 1, 2024

Thanks @WikiRik I'll use this option. I still think it's an invalid email address in general so I guess it makes sense to show it as invalid in general but maybe it needs some more research to be sure.

from validator.js.

devmanbud avatar devmanbud commented on July 1, 2024

I've changed allow_utf8_local_part set to false how do I test it?

from validator.js.

RaminGe avatar RaminGe commented on July 1, 2024

I've changed allow_utf8_local_part set to false how do I test it?

Simply pass the email to the function and log it:

// allow_utf8_local_part === false:
console.log(validator.isEmail('te¸[email protected]')); // => true

// allow_utf8_local_part === true:
console.log(validator.isEmail('te¸[email protected]')); // => false

from validator.js.

devmanbud avatar devmanbud commented on July 1, 2024

how do I log this

from validator.js.

devmanbud avatar devmanbud commented on July 1, 2024

run*

from validator.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.