-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
bug? #8
Comments
Thank you for the report! I would say that it is the following regexp pattern that is the issue: Seeing that it allows for Not really sure how we should handle this, what do you think @frozzare, force 0-2 numbers maybe? |
Setting it to |
Yes, that works! |
Sounds good @Johannestegner ! |
Ok then @frozzare @Johannestegner , if you update regexp and unit test I'll close the ticket :) |
Sorry for slow fix, had RL issues to take care of and then java errors to fight with, hehee. |
Hi guys,
This might be a bug. Using one of the ssn:s in your tests (701063-2391) and then prepending it with a '9' still returns true.
This test fails:
assertFalse(Personnummer.valid("9701063-2391"));
br Svante
The text was updated successfully, but these errors were encountered: