jackocnr / intl-tel-input

A JavaScript plugin for entering and validating international telephone numbers
https://intl-tel-input.com
MIT License
7.38k stars 1.93k forks source link

Ukrainian mobile code 98 conflicts with Iran code #1625

Closed piliffok closed 1 month ago

piliffok commented 1 month ago

Plugin version

v23.0.7

Steps to reproduce

  1. Choose Ukraine (or)
  2. Enter 380987183223 (or) 987183223
  3. Country switched to Iran

Expected behaviour

Numbers like 38098 detects as Ukrainian

Actual behaviour

Numbers like 38098 detects as Iran

Initialisation options

excludeCountries: ['ru'], initialCountry: 'ua', countryOrder: ['ua', 'pl', 'de', 'fr', 'gb'], autoPlaceholder: 'aggressive', separateDialCode: true, strictMode: true,

Additional info

Some numbers, like 38098415xxxx detects correctly

jackocnr commented 1 month ago

That's strange, I can't reproduce this issue. I've setup a codepen with your initialisation options, but when I type those numbers it stays with Ukraine selected - can you reproduce the issue on this codepen somehow? If so, can you provide clear steps to reproduce?

jackocnr commented 1 month ago

Closing due to inactivity.