iamstevendao / vue-tel-input

International Telephone Input with Vue
https://iamstevendao.com/vue-tel-input/
MIT License
801 stars 339 forks source link

Incorrectly showing possible number as valid #393

Open graemedewe opened 1 year ago

graemedewe commented 1 year ago

using: "libphonenumber-js": "^1.10.24", "vue-tel-input": "^5.12.0",

When I enter this Irish number +3538505662500 into the demo for https://www.npmjs.com/package/libphonenumber-js I get it saying it is possible but not valid

screenshot-catamphetamine gitlab io-2023 03 16-15_17_26

but when I enter it here https://vue-tel-input.iamstevendao.com/ it says its valid screenshot-vue-tel-input iamstevendao com-2023 03 16-15_18_48

the problem is our backend is using https://github.com/giggsey/libphonenumber-for-php whish says its invalid https://giggsey.com/libphonenumber/index.php?phonenumber=%2B3538505662500&country=&language=&region=

causing me issues. How can I resolve this as it seems this number is not actually valid?

andreasvoigt commented 1 year ago

The demo you mentioned uses the max version of the metadata set. The vue-tel-input only uses the default version which has a limited set of validation rules. This issue is related to: #369