Giter Site home page Giter Site logo

Comments (4)

jackocnr avatar jackocnr commented on May 21, 2024

Hi Alex, thanks for reporting this. Yes I can see on this libphonenumber demo page if you enter that number and submit, the "International format" is +33 6 44 44 44 44. I will look into re-compiling the libphonenumber script with some sort of getFormattedValue method, but I'm concerned about increasing the filesize too much (it's already ~200KB). Also this weekend I'm planning to do a release which includes an autoFormat option (enabled by default) which will disallow alphabetic characters to be entered. I've already pushed it to master if you want to have a look. Would you use this option, or is it important to you that users can enter alphabetic characters?

from intl-tel-input.

jackocnr avatar jackocnr commented on May 21, 2024

If we don't care about allowing alpha chars (which I personally don't), an easy solution would be to modify the plugin's isValidNumber method to do an extra check for alpha chars and return false if it finds any.

from intl-tel-input.

Capellaro avatar Capellaro commented on May 21, 2024

Hi,

I personally don't care neither about allowing alpha chars so yes maybe
just adding a new check will do the trick.
Le 11 juil. 2014 18:30, "jackocnr" [email protected] a écrit :

If we don't care about allowing alpha chars (which I personally don't), an
easy solution would be to modify the plugin's isValidNumber method to do an
extra check for alpha chars and return false if it finds any.


Reply to this email directly or view it on GitHub
#47 (comment)
.

from intl-tel-input.

jackocnr avatar jackocnr commented on May 21, 2024

Ok. I added this in v2.0.0.

from intl-tel-input.

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.