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

Support 17X cellphone number in China (virtual ISPs) #120

Closed
wants to merge 3 commits into from

Conversation

Hexcles
Copy link
Contributor

@Hexcles Hexcles commented Sep 30, 2014

China has recently allowed "virutal mobile ISPs" and assigned them with cellphone numbers starting with 17 (still 11 digits in total).

I've updated the regular expression, doc and tests.

@@ -201,7 +201,7 @@ class CNCellNumberField(RegexField):
A valid cell number could be like: 13012345678

We used a rough rule here, the first digit should be 1, the second could be
3, 5 and 8, the rest could be what so ever.
3, 4, 5, 7 and 8, the rest could be what so ever.
The length of the cell number should be 11.
"""
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a versionchanged statement about adding 7 in here? See dc14842 for an example.

Also, while we're updating this, let's patch up the language a little. I suggest:

  • the second could -> the second should
  • and 8 -> or 8
  • the rest could be what so ever -> followed by 9 more digits

@Hexcles
Copy link
Contributor Author

Hexcles commented Sep 30, 2014

@erikr Thanks! I just made two more commits, dealing with general language problems and versionchanged statements.

@mxsasha
Copy link
Member

mxsasha commented Oct 4, 2014

Thanks, committed in ae402af!

@mxsasha mxsasha closed this Oct 4, 2014
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.

None yet

2 participants