fix: missing format
This commit is contained in:
parent
c0171a4b0c
commit
d79d77cb87
1 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ const FIELD_LIST = {
|
|||
format: (value: string) => moment(value, 'YYMMDD').format('YYYY-MM-DD'),
|
||||
},
|
||||
expireDate: {
|
||||
field: 'expireDate',
|
||||
field: 'expire_date',
|
||||
format: (value: string) => moment(value, 'YYMMDD').format('YYYY-MM-DD'),
|
||||
},
|
||||
};
|
||||
|
|
@ -64,10 +64,10 @@ const MRZ_TD_2 = [
|
|||
`(?<doc_number>[0-9A-Z<]{9})`,
|
||||
`(?<doc_numbercheck>[0-9A-Z<]{1})`,
|
||||
`(?<nationality>[0-9A-Z<]{3})`,
|
||||
`(?<birth_date>[0-9A-Z<]{6})`,
|
||||
`(?<${FIELD_LIST.birthDate.field}>[0-9A-Z<]{6})`,
|
||||
`(?<birth_date_check>[0-9A-Z<]{1})`,
|
||||
`(?<sex>[mfMF]{1})`,
|
||||
`(?<expire_date>[0-9A-Z<]{6})`,
|
||||
`(?<${FIELD_LIST.expireDate.field}>[0-9A-Z<]{6})`,
|
||||
`(?<expire_date_check>[0-9A-Z<]{1})`,
|
||||
`(?<optional_data>[A-Z0-9<]{7})`,
|
||||
`(?<line_check>[0-9A-Z<]{1})`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue