diff --git a/lib/findDocumentData.js b/lib/findDocumentData.js index 91f997c..0ed6058 100644 --- a/lib/findDocumentData.js +++ b/lib/findDocumentData.js @@ -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]