ruimarinho / google-libphonenumber

The up-to-date and reliable Google's libphonenumber package for node.js.
https://ruimarinho.github.io/google-libphonenumber
Other
1.39k stars 144 forks source link

German validation of incorrect phone numbers #401

Closed lelongt closed 1 month ago

lelongt commented 1 month ago

Hello, I'm using the version "3.2.33" of the lib and i have an issue on german phone numbers. I tried to upgrade to latest version but i still have the same problem.

For the german phone numbers, 10 digits numbers are needed in the format, here is a link to a ressource that explain the german phone number format : https://en.wikipedia.org/wiki/Telephone_numbers_in_Germany but the function of the lib "isValidNumber" return true on this number for example : "+49 30123"

is it possible to consider a fix for the format validity for german numbers ?