Skip to content

Swdeden personalidentitynumber - format acceptance and age validations #113

Description

@teebu

https://swedish.identityinfo.net/personalidentitynumber

The format states the [-+] are optional.

  • 11900102-2384 -> invalid because it needs + to indicate over 100 years of age, also im thinking 1800 should be a cutoff.
    119001022384 would also be an acceptable format, but not pass due to 1800 cutoff (1190 is YYYY)
  • 5505260017 -> valid because - is optional
  • 198902255630 -> valid because - is optional
  • 19781204+0009 -> invalid because + indicates age is over 100 years
  • 19200102-0755 -> invalid because - indicates the age is under 100 years

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions