GithubHelp home page GithubHelp logo

contactbook's People

Contributors

fynnschapdick avatar

Watchers

 avatar  avatar

contactbook's Issues

Suggestions

Hi Fynn,

I noticed you are using my PhoneNumber library in your project and just thought it might be useful to mention something based upon how you are using it.

In CreateContactRequestValidator, whilst you are checking that the input can be parsed, it doesn’t necessarily mean the input (which you currently store in the Contact) is in exactly E.164 format as the parsing will ignore formatting and also parses inputs using the RFC3966 format so you might want to consider running the input through the parse method and actually storing the result of PhoneNumber.Parse(mobile).ToString() when you create the contact record.

If you test with the following inputs you will see what I mean:

Submitting +492111234567 will succeed per your existing test and result in +492111234567 being saved but the following will also succeed but result in the raw input being stored +49-211-1234567 and tel:+49-211-1234567.

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.