Giter Club home page Giter Club logo

Comments (4)

nicolaiarocci avatar nicolaiarocci commented on May 21, 2024

Yeah I agree that it would be nice to have. Only problem being, no matter how good the regex people will always complain that it isn't good enough :)

This is one of those fields where I feel that customization comes in really handy, as anyone can work out his/her own use case, relying on email validatio APIs included (you could call the API in your custom validation function for example).

Of course we could still provide a standard email validation rule, which people could then choose to override if so they wish. A standard email validation rule would also be nice to have in Eve.

from cerberus.

boosh avatar boosh commented on May 21, 2024

I agree. A standard email validator would let people get up-and-running quickly. If it took a regex as a parameter then people could override that as necessary.

I also think that a regex attribute on the string validator could be useful - in fact, the email validator could then just call the string validator and supply a default email regex.

BTW - Mailgun released their validation tool: https://github.com/mailgun/flanker

from cerberus.

nicolaiarocci avatar nicolaiarocci commented on May 21, 2024

I added a regex validation rule instead, which of course makes email validation a snap (see the test, or the documentation example).

from cerberus.

boosh avatar boosh commented on May 21, 2024

Great, thanks.

from cerberus.

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.