You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Spain all citizens has a National ID composed by 8 numbers plus a letter. The letter in fact is calculated with a modulus of the number and a lookup table, avoiding mistyping the ID or people faking it on the fly-
* Add Spain National ID validator (#7574)
* is_spain_national_id()
* Update is_spain_national_id.py
* Some systems add a dash
Co-authored-by: Christian Clauss <[email protected]>
Feature description
In Spain all citizens has a National ID composed by 8 numbers plus a letter. The letter in fact is calculated with a modulus of the number and a lookup table, avoiding mistyping the ID or people faking it on the fly-
https://en.wikipedia.org/wiki/Documento_Nacional_de_Identidad_(Spain)#Number
Create a function that given a string like "12345678X" (or "12345678-X", some systems put a dash) returns True or False if it is a valid or not.
Would you like to work on this feature?
The text was updated successfully, but these errors were encountered: