Skip to content

Fix duplicate phone number prefix 145 in zh_CN locale#2343

Open
r266-tech wants to merge 1 commit intojoke2k:masterfrom
r266-tech:fix/duplicate-prefix-cn-phone
Open

Fix duplicate phone number prefix 145 in zh_CN locale#2343
r266-tech wants to merge 1 commit intojoke2k:masterfrom
r266-tech:fix/duplicate-prefix-cn-phone

Conversation

@r266-tech
Copy link
Copy Markdown

Summary

The zh_CN phone number provider has a duplicate entry for prefix 145 in its phonenumber_prefixes list.

The Bug

The list contains 30 entries but only 29 unique prefixes - 145 appears twice. This means:

  • Prefix 145 is generated approximately 2x more often than other prefixes
  • The distribution is slightly skewed

The Fix

Remove the duplicate 145 entry from the list.

Before

phonenumber_prefixes = [
    ..., 156, 185, 186, 145, 133, 153, 180, 181, 189,
]
# 30 entries, 29 unique

After

phonenumber_prefixes = [
    ..., 156, 185, 186, 133, 153, 180, 181, 189,
]
# 29 entries, 29 unique

Remove duplicate 145 from the phonenumber_prefixes list.
The list had 30 entries but only 29 unique prefixes.
Copy link
Copy Markdown
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

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

Thank you!

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.

2 participants