Skip to content

Commit

Permalink
fix: simplified regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Theta-Dev committed Oct 19, 2021
1 parent b1da16a commit 3596b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isPassportNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const passportRegexByCountryCode = {
PO: /^[A-Z]{2}\d{7}$/, // POLAND
PT: /^[A-Z]\d{6}$/, // PORTUGAL
RO: /^\d{8,9}$/, // ROMANIA
RU: /^\d\d{2}\d{6}$/, // RUSSIAN FEDERATION
RU: /^\d{9}$/, // RUSSIAN FEDERATION
SE: /^\d{8}$/, // SWEDEN
SL: /^(P)[A-Z]\d{7}$/, // SLOVANIA
SK: /^[0-9A-Z]\d{7}$/, // SLOVAKIA
Expand Down

0 comments on commit 3596b87

Please sign in to comment.