Skip to content

Invalid MRZ #36

@lpatiny

Description

@lpatiny

The following example seems wrong

const MRZ = [
'I<UTOD23145890<1240<XYZ<<<<<<<',
'7408122F1204159UTO<<<<<<<<<<<8',
'ERIKSSON<<ANNA<MARIA<<<<<<<<<<',
];

While 1240 is correct and the 0 is the check digit, characters after the '<' (in this case XYZ) are not expected to be there.

We should add an example that fails (the current one) and a new one with the following MRZ

      'I<UTOD23145890<1240<<<<<<<<<<<',
      '7408122F1204159UTO<<<<<<<<<<<8',
      'ERIKSSON<<ANNA<MARIA<<<<<<<<<<',

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions