Giter Club home page Giter Club logo

Comments (2)

marcelosalloum avatar marcelosalloum commented on August 22, 2024

BTW, according to the international telecom pattern E.164, the total amount of numbers should be 15 at maximum.

from python-phonenumbers.

daviddrysdale avatar daviddrysdale commented on August 22, 2024

A PhoneNumber object will have a national-significant-number part that's limited to 17 chars, plus up to 3 chars of country code (but it can have a long extension attached too).

The upstream source notes for this limit of 17 that: "The ITU says the maximum length should be 15, but we have found longer numbers in Germany".

Additionally, an E164 number can get prefixed with an international dialling code (e.g 011) and suffixed with an extension, and might have all sorts of other punctuation embedded (e.g. "001-(900) 234-5678 extension 123456") -- so a user-input phone number field can potentially be a lot longer than 17+3.

As a result the internal limit is 250 characters, but I don't know of any other limits.

from python-phonenumbers.

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.