Skip to content

Commit

Permalink
standard
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgtho committed May 30, 2024
1 parent bacb5c3 commit 01382ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/findDocumentData.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ module.exports = {

// Get birthdate on azf-archive format: YYYY-MM-DD (pdf-format is: DD.MM.YYYY)
if (!documentData.birthdate) throw new Error('Could not find birthdate in document')
const birthdateList = documentData.birthdate.replace(/\s+/g, '').substring(0,10).split('.')
const birthdateList = documentData.birthdate.replace(/\s+/g, '').substring(0, 10).split('.')
if (birthdateList.length !== 3) throw new Error(`Could not find valid birthdate in string ${documentData.birthdate}`)
const date = birthdateList[0]
const month = birthdateList[1]
Expand Down

0 comments on commit 01382ff

Please sign in to comment.