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

better SSN regex #451

Merged
merged 1 commit into from
Mar 31, 2019
Merged

better SSN regex #451

merged 1 commit into from
Mar 31, 2019

Conversation

rucas
Copy link
Contributor

@rucas rucas commented Mar 6, 2019

Enhances SSN Validation.

  • does not allow 00 group number
  • does not allow 0000 serial number

More Info:

https://www.ssa.gov/employer/randomization.html

Previously unassigned area numbers were introduced for assignment excluding area numbers 000, 666 and 900-999.

https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s12.html

Make sure that you've checked the boxes below before you submit PR:

  • Tests exist or have been written that cover this particular change.

Change Details:

@go-playground/admins

* does not allow 00 group number
* does not allow 0000 serial number
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling dbd65cc on rucas:v9 into b199fa0 on go-playground:v9.

@deankarn
Copy link
Contributor

Tanks @rucas for the PR, will try to get it merged this week

@deankarn deankarn merged commit 5ed5b2e into go-playground:v9 Mar 31, 2019
fairyhunter13 added a commit to fairyhunter13/validator that referenced this pull request Jul 12, 2020
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

3 participants