Skip to content
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

Invalid MRZ #36

Open
lpatiny opened this issue Feb 23, 2023 · 0 comments
Open

Invalid MRZ #36

lpatiny opened this issue Feb 23, 2023 · 0 comments
Labels

Comments

@lpatiny
Copy link
Member

lpatiny commented Feb 23, 2023

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<<<<<<<<<<',
@lpatiny lpatiny added the bug label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant