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

Fix: Use pattern to define Australian cell phone formats #2499

Merged
merged 1 commit into from
Jun 21, 2022

Conversation

mattr
Copy link
Contributor

@mattr mattr commented Jun 20, 2022

Issue#

#2498

Description:

Restore patterns rather than fictional list as this does not provide sufficient unique cases when testing exclusively Australian numbers. Restrict the set to 040-043 numbers as these ranges are fully allocated and will not generate errors (044-049 can generate errors if using phonelib for validation should the number fall in "spare" ranges).

The use of patterns to define valid numbers is inline with other countries in Faker (e.g. US or NZ). The restriction of Australia to fictional numbers seems to be an outlier.

@mattr mattr force-pushed the issue/expand-au-cell-formats branch from 436a828 to ec19a3c Compare June 20, 2022 15:21
Restore patterns rather than fictional list as this does not provide sufficient unique cases when testing exclusively Australian numbers. Restrict the set to 041-043 numbers as these ranges are fully allocated and will not generate errors (044-049 can generate errors if using phonelib for validation).
@mattr mattr force-pushed the issue/expand-au-cell-formats branch from ec19a3c to 1a1e476 Compare June 21, 2022 02:17
Copy link
Contributor

@sudeeptarlekar sudeeptarlekar left a comment

Choose a reason for hiding this comment

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

Looks good.

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.

👍

@vbrazo vbrazo merged commit 1f5af81 into faker-ruby:master Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants