Skip to content

Commit

Permalink
Fix #26
Browse files Browse the repository at this point in the history
  • Loading branch information
Arg0s1080 committed Aug 31, 2020
1 parent 737b29c commit f9de70e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mrz/base/string_checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def document_type(string, cls):


def precheck(document_description: str, string: str, length: int):
s = string.replace("\n", "")
if check_string(_check_upper(string)) and len(string) != length:
raise LengthError(cause=len(s), document=document_description, length=length)
if not is_printable(string, "\n"):
Expand Down

0 comments on commit f9de70e

Please sign in to comment.