Skip to content

Commit

Permalink
fixed Lebanon zip code validation
Browse files Browse the repository at this point in the history
  • Loading branch information
norbertschuler committed Dec 21, 2023
1 parent 6c792d3 commit 48536f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Utils/countryZipCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ const COUNTRY_ADDRESS_POSTALS = [{
}, {
abbrev: 'LB',
name: 'Lebanon',
postal: /^[0-9]{4} ?[0-9]{4}$/,
postal: /^[0-9]{4} ?([0-9]{4})?$/,
}, {
abbrev: 'LS',
name: 'Lesotho',
Expand Down Expand Up @@ -911,6 +911,5 @@ const COUNTRY_ADDRESS_POSTALS = [{
abbrev: 'ZW',
name: 'Zimbabwe',
}];

export default COUNTRY_ADDRESS_POSTALS;

0 comments on commit 48536f1

Please sign in to comment.