Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix formatting for Brazilian phone and cell phone numbers #1122

Merged
merged 1 commit into from
May 15, 2018
Merged

Fix formatting for Brazilian phone and cell phone numbers #1122

merged 1 commit into from
May 15, 2018

Conversation

lucasqueiroz
Copy link
Member

Description

This fixes the issue #1120

Copy link
Member

@vbrazo vbrazo 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 contributing 🥇 Looks good to me. I left a comment suggesting to implement a new detail which is pretty useful.

- "(#{PhoneNumber.area_code}) #{PhoneNumber.subscriber_number}-#{PhoneNumber.subscriber_number}"
cell_phone:
formats:
- "(#{PhoneNumber.area_code}) 9#{PhoneNumber.subscriber_number}-#{PhoneNumber.subscriber_number}"
Copy link
Member

Choose a reason for hiding this comment

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

I can see that we're using a national format, and I like that!

What do you think about adding a way to return Brazilian numbers with their international format as well? +55 (##) ####-####

@vbrazo
Copy link
Member

vbrazo commented May 15, 2018

@lucasqueiroz Let's open another PR with this change that I suggested 🏭

@vbrazo vbrazo merged commit 74d212e into faker-ruby:master May 15, 2018
@vbrazo vbrazo self-requested a review July 19, 2018 01:33
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants