Skip to content

Commit

Permalink
Merge pull request #74 from BlinkID/release/4.11.1.3
Browse files Browse the repository at this point in the history
UAE ID - removing new lines from full name
  • Loading branch information
matvidako authored Jan 16, 2020
2 parents cc0021b + f2207d9 commit 6f87b2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ class UnitedArabEmiratesIdRecognition: TwoSideRecognition<UnitedArabEmiratesIdFr
}

if (frontResult.isNotEmpty()) {
add(FULL_NAME, frontResult.name)
add(FULL_NAME, frontResult.name.replace("\n", " "))
add(IDENTITY_NUMBER, frontResult.idNumber)
add(NATIONALITY, frontResult.nationality)
}
}

override fun getResultTitle(): String? {
if (frontResult.isNotEmpty()) {
return frontResult.name
return frontResult.name.replace("\n", " ")
}
if (backResult.isNotEmpty()) {
return backResult.mrzResult.buildTitle()
Expand Down

0 comments on commit 6f87b2a

Please sign in to comment.