Skip to content

Not validating assigned digit in Mexico ID Validator #48

@SLourenco

Description

@SLourenco

Hey.

I think I found a bug with the Mexico ID Validator.

According to the wikipedia article, the penultimate digit of a Mexico ID should be:

One character ranging from 0-9 for people born before 2000 or from A-Z for people born since 2000; this is generated by the National Population Registry to prevent identical entries.

However, one of the unit tests in the project considers the ID AAIT101109MHGNMN01 as valid:

image

If we look into the date of birth, it should be 2010-11-09 (14 year old) and not 1910-11-09 (114 year old) right? As such, the penultimate digit should be a letter, not a number, making this id invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions