We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ca642b commit 12fe67eCopy full SHA for 12fe67e
Sources/MRZParser/Private/MRZCode/MRZCode.swift
@@ -33,9 +33,7 @@ struct MRZCode {
33
fieldsValidate.append(optionalData2Field)
34
}
35
36
- let compositedValue = fieldsValidate
37
- .filter { $0.isValid }
38
- .reduce("", { $0 + $1.rawValue + $1.checkDigit })
+ let compositedValue = fieldsValidate.reduce("", { $0 + $1.rawValue + $1.checkDigit })
39
let isCompositedValueValid = MRZFieldFormatter.isValueValid(compositedValue, checkDigit: finalCheckDigit)
40
return documentNumberField.isValid &&
41
birthdateField.isValid &&
0 commit comments