You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did a bit of research on this, but it's not clear to me whether this is true only for specific countries or locales, or for any country/locale.
I could only find this information here about the leading zero:
In a number of countries, local dialing may require the addition of a '0' in front of the subscriber number. With E.164 formatting, this '0' must usually be removed. Source - Twilio
Can you point me to a source that says the leading zero should be removed from all area codes in all countries? Otherwise, we might have to patch it only for specific countries. Thanks!
Describe the bug
Faker::PhoneNumber.cell_phone_in_e164 returns invalid cell phone numbers for en-AU and en-NZ locales.
To Reproduce
Faker version is 2.18.0
Faker::Config.locale = 'en-AU'
Faker::PhoneNumber.cell_phone_in_e164
Faker::Config.locale = 'en-NZ'
Faker::PhoneNumber.cell_phone_in_e164
National dialing in AU and NZ uses a 0 prefix
International dialing in AU and NZ replaces the 0 prefix with +61 (AU) or +64 (NZ)
The text was updated successfully, but these errors were encountered: