jackocnr / intl-tel-input

A JavaScript plugin for entering and validating international telephone numbers. React and Vue components also included.
https://intl-tel-input.com
MIT License
7.66k stars 1.95k forks source link

valide phone number not validated #930

Closed StillUpgrade closed 5 years ago

StillUpgrade commented 5 years ago

Steps to reproduce

  1. enter +212 708219### (ex: +212 708219111)
  2. phone number is triggered as not valid
  3. go to google's validation lib example : https://libphonenumber.appspot.com/ enter the same phone, (country is 'MA') it's valid.
jackocnr commented 5 years ago

Please make sure you're using the latest version. I just tested on the validation demo page and your example number came up valid.

StillUpgrade commented 5 years ago

image

you are talking about https://intl-tel-input.com/node_modules/intl-tel-input/examples/gen/is-valid-number.html right ? it's not valid for me.

jackocnr commented 5 years ago

Hmm that's weird. Try clearing your cache. I recently updated the plugin version on those demo pages.

StillUpgrade commented 5 years ago

🤦‍♂ It was the cache, thank you and sorry for the issue