Skip to content

Commit

Permalink
Update NationalIdService and remove redundant trim
Browse files Browse the repository at this point in the history
  • Loading branch information
Imorate committed Oct 6, 2024
1 parent e21c273 commit d166f38
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ private void validateNationalIdFormat(String nationalId) {
if (nationalId == null) {
throw new ValidationException("National ID is null");
}
nationalId = nationalId.trim();
if (!nationalId.matches("\\d{10}") || nationalId.matches("(\\d)\\1{9}")) {
throw new ValidationException("Invalid National ID format: " + nationalId);
}
Expand Down

0 comments on commit d166f38

Please sign in to comment.