Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the Ukrainian country calling code #2758

Merged
merged 1 commit into from
May 8, 2023

Conversation

kyrylo
Copy link
Contributor

@kyrylo kyrylo commented May 6, 2023

🇺🇦

I should mention that the correct dialing code is 380. However, when I call Faker::PhoneNumber.cell_phone_in_e164, it returns a number akin to +3800636232872. Note the extra zero. It should be +380636232872 instead.

Compare:
+3800636232872
+380636232872

Copy link
Contributor

@thdaraujo thdaraujo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for adding this!

The extra zero might be a bug, so let's add the correct code here instead.

The problem could be related to this other issue: #2686

@@ -55,6 +55,8 @@ uk:
name_with_middle:
- "#{first_name} #{last_name} #{last_name}"

country_code: ['38']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add the correct code instead:

Suggested change
country_code: ['38']
country_code: ['380']

@kyrylo
Copy link
Contributor Author

kyrylo commented May 8, 2023

Thanks, added!

PTAL

Copy link
Contributor

@thdaraujo thdaraujo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@thdaraujo thdaraujo changed the title Add the Ukrainian country code Add the Ukrainian country calling code May 8, 2023
@thdaraujo thdaraujo merged commit 4bee42a into faker-ruby:main May 8, 2023
@kyrylo kyrylo deleted the ukrainian-country-code branch May 9, 2023 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants