Skip to content

Commit

Permalink
feat(mrtd): auto-correct MRZ (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
genaris authored Dec 2, 2024
1 parent 2f27256 commit 42058a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mrtd/src/DidCommMrtdService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class DidCommMrtdService {

let parsed
try {
const parseResult = Mrz.parse(message.mrzData)
const parseResult = Mrz.parse(message.mrzData, { autocorrect: true })

parsed = { valid: parseResult.valid, fields: parseResult.fields, format: parseResult.format }
} catch (error) {
Expand Down

0 comments on commit 42058a4

Please sign in to comment.